|
Lean
$LEAN_TAG$
|
Raw file handler More...
Public Member Functions | |
| virtual bool | Exists (string path) |
| True if the given file path exists More... | |
| virtual void | Delete (string path) |
| Will delete the given file path More... | |
| virtual void | WriteAllBytes (string path, byte[] data) |
| Will write the given byte array at the target file path More... | |
| virtual byte[] | ReadAllBytes (string path) |
| Read all bytes in the given file path More... | |
| virtual long | TryGetFileLength (string path) |
| Will try to fetch the given file length, will return 0 if it doesn't exist More... | |
| virtual bool | DirectoryExists (string path) |
| True if the given directory exists More... | |
| virtual DirectoryInfo | CreateDirectory (string path) |
| Create the requested directory path More... | |
| virtual IEnumerable< FileInfo > | EnumerateFiles (string path, string pattern, SearchOption searchOption, out string rootfolder) |
| Enumerate the files in the target path More... | |
Raw file handler
Useful to abstract file operations for LocalObjectStore
Definition at line 25 of file FileHandler.cs.
|
virtual |
True if the given file path exists
Definition at line 30 of file FileHandler.cs.
|
virtual |
Will delete the given file path
Definition at line 38 of file FileHandler.cs.
|
virtual |
Will write the given byte array at the target file path
Definition at line 46 of file FileHandler.cs.
|
virtual |
Read all bytes in the given file path
Definition at line 54 of file FileHandler.cs.
|
virtual |
Will try to fetch the given file length, will return 0 if it doesn't exist
Definition at line 62 of file FileHandler.cs.
|
virtual |
True if the given directory exists
Definition at line 75 of file FileHandler.cs.
|
virtual |
Create the requested directory path
Definition at line 83 of file FileHandler.cs.
|
virtual |
Enumerate the files in the target path
Definition at line 91 of file FileHandler.cs.