Contains file helper functions.
More...
Contains file helper functions.
◆ GetFileDirectory()
static string TriLib.FileUtils.GetFileDirectory |
( |
string |
filename | ) |
|
|
static |
Gets the file directory.
- Returns
- The file directory.
- Parameters
-
◆ GetFileExtension()
static string TriLib.FileUtils.GetFileExtension |
( |
string |
filename | ) |
|
|
static |
Gets the filename extension.
- Returns
- The filename extension.
- Parameters
-
◆ GetFilename()
static string TriLib.FileUtils.GetFilename |
( |
string |
path | ) |
|
|
static |
Gets the path filename.
- Returns
- The filename.
- Parameters
-
◆ GetFilenameWithoutExtension()
static string TriLib.FileUtils.GetFilenameWithoutExtension |
( |
string |
filename | ) |
|
|
static |
Gets the filename without extension.
- Returns
- The filename without extension.
- Parameters
-
◆ GetRelativePath()
static string TriLib.FileUtils.GetRelativePath |
( |
string |
root, |
|
|
string |
path |
|
) |
| |
|
static |
Gets the path relative to given root.
- Parameters
-
root | Root path. |
path | Absolute path. |
- Returns
- The path relative to the root.
◆ GetShortFilename()
static string TriLib.FileUtils.GetShortFilename |
( |
string |
filename | ) |
|
|
static |
Gets the short filename from a full filename.
- Returns
- The short filename.
- Parameters
-
◆ LoadFileData()
static byte [] TriLib.FileUtils.LoadFileData |
( |
string |
filename | ) |
|
|
static |
Synchronously loads the file data.
- Returns
- The file data.
- Parameters
-
◆ LoadFileStream()
static FileStream TriLib.FileUtils.LoadFileStream |
( |
string |
filename | ) |
|
|
static |
Creates a file stream for given filename.
- Returns
- The created FileStream.
- Parameters
-
◆ SanitizePath()
static string TriLib.FileUtils.SanitizePath |
( |
string |
path | ) |
|
|
static |
Sanitizes a path.
- Parameters
-
- Returns
- Sanizited path.
The documentation for this class was generated from the following file: