FileUtil Class |
Namespace: Nova.Utilities
public static class FileUtil
The FileUtil type exposes the following members.
Name | Description | |
---|---|---|
CombineAndNormalizePath |
Combine the two specified paths, removing any "..\" prefixes from the 2nd path,
while removing corresponding subdirectories from the 1st path at the same time.
Also, ensure that only a single '\' is used to combine the paths.
| |
FindFile |
Find the specified file name in the base directory of the application or any subdirectories.
| |
GetBaseDirectory |
Get the base directory of the executing application, using the project directory if running in an output directory.
| |
GetFileStreamAndEncoding |
Get a FileStream for the specified file name, also checking if it has a BOM or a valid UTF8 sequence.
| |
MakeRelative |
Determine a relative path that navigates from the first specified path to the second one.
| |
RemoveCommonRootPath |
Remove the specified common root path from the specified file name.
| |
RemoveLastDirectory |
Remove the last directory from the specified path.
|