|
static HashSet< string > | files = new HashSet<string>() |
|
Definition at line 6 of file ReservedFiles.cs.
◆ IsFileReserved()
static bool BGC.Utility.ReservedFiles.IsFileReserved |
( |
string |
path | ) |
|
|
inlinestatic |
Returns if the path is currently reserved
- Parameters
-
- Returns
- True if the file is reserved, false if not
Definition at line 47 of file ReservedFiles.cs.
49 return files.Contains(path);
static HashSet< string > files
◆ ReserveFile()
static bool BGC.Utility.ReservedFiles.ReserveFile |
( |
string |
path | ) |
|
|
inlinestatic |
Reserve a file so other processes won't use them
- Parameters
-
- Returns
- True if the file was succesfully reserved
Definition at line 15 of file ReservedFiles.cs.
17 if (
files.Contains(path) ==
false)
static HashSet< string > files
◆ UnReserveFile()
static bool BGC.Utility.ReservedFiles.UnReserveFile |
( |
string |
path | ) |
|
|
inlinestatic |
UnReserve a file if found
- Parameters
-
- Returns
- True if hte file was found and removed
Definition at line 31 of file ReservedFiles.cs.
33 if (
files.Contains(path))
static HashSet< string > files
◆ files
HashSet<string> BGC.Utility.ReservedFiles.files = new HashSet<string>() |
|
staticprivate |
The documentation for this class was generated from the following file: