Simply3DScan
SharedObjects.FileHelper Class Reference

static File Helpers More...

Static Public Member Functions

static void CreatePathIfNotExisting (string folder)
 Creates the path if not existing. More...
 
static void DeleteAllFilesInFolder (string imageFolder)
 Deletes all files in folder. More...
 

Detailed Description

static File Helpers

Definition at line 8 of file FileHelper.cs.

Member Function Documentation

static void SharedObjects.FileHelper.CreatePathIfNotExisting ( string  folder)
static

Creates the path if not existing.

Parameters
folderThe folder.

Definition at line 14 of file FileHelper.cs.

15  {
16  bool exists = Directory.Exists(folder);
17 
18  if (!exists)
19  Directory.CreateDirectory(folder);
20  }

Here is the caller graph for this function:

static void SharedObjects.FileHelper.DeleteAllFilesInFolder ( string  imageFolder)
static

Deletes all files in folder.

Parameters
imageFolderThe image folder.

Definition at line 26 of file FileHelper.cs.

27  {
28  DirectoryInfo downloadedMessageInfo = new DirectoryInfo(imageFolder);
29 
30  foreach (FileInfo file in downloadedMessageInfo.GetFiles())
31  {
32  file.Delete();
33  }
34  }

Here is the caller graph for this function:


The documentation for this class was generated from the following file: