Method | Description | |
---|---|---|
FileHandlerShii ( string ext ) : System | ||
GetFileFromMemory ( |
Gets the file from memory if it is loaded, otherwise null
|
|
HasFileBeenModified ( |
Checks whether the file source has been modified. It first checks whether the file has been recorded previously, then compares the modification (UTC) time.
|
|
IsFileInMemory ( |
Checks whether the file is in memory.
|
|
LoadDirectory ( |
||
LoadFile ( |
Loads and returns the content of the file into memory. Will not load files larger than the safe limit.
|
|
SaveFile ( |
Saves the contents in memory to disk and updates the last write time (UTC).
|
|
SaveFile ( |
Updates the contents in memory, saves it to disk and updates the last write time.
|
|
UpdateFileContentInMemory ( |
Puts contents into the collection of file contents. Must be called before calling SaveFile(System.IO.FileInfo) to update the file contents.
|
Method | Description | |
---|---|---|
GetKey ( |
Gets a usable key to use for retrieving contents from memory.
|
public FileHandlerShii ( string ext ) : System | ||
ext | string | |
return | System |
public GetFileFromMemory ( |
||
fileInfo | ||
return | IEnumerable |
public HasFileBeenModified ( |
||
info | The file info that allows for a uniform file pathing convention. | |
return | bool |
public IsFileInMemory ( |
||
info | ||
return | bool |
public LoadDirectory ( |
||
dI | ||
return | List |
public LoadFile ( |
||
info | The file info that allows for a uniform file pathing convention. | |
return | void |
public SaveFile ( |
||
info | The file info that allows for a uniform file pathing convention. | |
return | void |
public SaveFile ( |
||
info | ||
contents | IEnumerable |
|
return | void |
public UpdateFileContentInMemory ( |
||
info | ||
contents | IEnumerable |
|
return | void |