메소드 | 설명 | |
---|---|---|
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.
|
메소드 | 설명 | |
---|---|---|
GetKey ( |
Gets a usable key to use for retrieving contents from memory.
|
public GetFileFromMemory ( |
||
fileInfo | ||
리턴 | IEnumerable |
public HasFileBeenModified ( |
||
info | The file info that allows for a uniform file pathing convention. | |
리턴 | bool |
public IsFileInMemory ( |
||
info | ||
리턴 | bool |
public LoadDirectory ( |
||
dI | ||
리턴 | List |
public LoadFile ( |
||
info | The file info that allows for a uniform file pathing convention. | |
리턴 | void |
public SaveFile ( |
||
info | The file info that allows for a uniform file pathing convention. | |
리턴 | void |
public SaveFile ( |
||
info | ||
contents | IEnumerable |
|
리턴 | void |
public UpdateFileContentInMemory ( |
||
info | ||
contents | IEnumerable |
|
리턴 | void |