Static class containing functions for accessing a hardcoded "file" and "directory" hierarchy. More...
Static Public Member Functions | |
static FileDirEntry | GetEntry (string filepath) |
Return a FileDirEntry object representing the specified file "path" in an internal list of data entries that is organized in a file/ directory structure. | |
Static Private Member Functions | |
static ? FileDirEntry | _FindEntry (string filepath) |
Helper method to search the static data list for the specified file/dir entry. | |
Static Private Attributes | |
static FileDirEntry | rootEntry |
Static class containing functions for accessing a hardcoded "file" and "directory" hierarchy.
Definition at line 24 of file Composite_FileAccess.cs.
|
inlinestaticprivate |
Helper method to search the static data list for the specified file/dir entry.
filepath | A "path" specifying the entry to find, with each component separated by '/'. |
Definition at line 52 of file Composite_FileAccess.cs.
References FileDirEntry.Children, FileDirEntry.Length, and FileDirEntry.Name.
|
inlinestatic |
Return a FileDirEntry object representing the specified file "path" in an internal list of data entries that is organized in a file/ directory structure.
filepath | A "path" specifying the entry to find, with each component separated by '/'. |
FIleNotFoundException | The specified file entry was not found. |
Definition at line 118 of file Composite_FileAccess.cs.
References _FindEntry().
Referenced by Composite_Exercise.Run().
|
staticprivate |
Definition at line 28 of file Composite_FileAccess.cs.