File directory class for I/O operations
More...
|
| static bool | Make (string path) |
| | Make directory More...
|
| |
| static string | SetQualifiedDirectorySeparator (string path) |
| | Convert slash separator to System.IO.Path.DirectorySeparatorChar including both versions. More...
|
| |
| static string | IncludeTrailingPathSeparator (string path) |
| | Include trailing path directory separator if not exists. To avoid platform specific directory separator character problem, like adding backslash after slash, use SetQualifiedDirectorySeparator method on path string before. More...
|
| |
| static string | ExcludeTrailingPathSeparator (string path) |
| | Exclude traling path directory separator More...
|
| |
| static string | IncludeLeadingRoot (string path, string root) |
| | Include leading root directory to the path if not specified More...
|
| |
| static string | GetDirectory (string file) |
| | Get directory path for a file without trailing directory separator. More...
|
| |
| static Tree< string > | Tree (string root, int depth) |
| |
| static IEnumerable< string > | GetAllFiles (string path, string search) |
| |
File directory class for I/O operations
◆ ExcludeTrailingPathSeparator()
| static string Energy.Base.Directory.ExcludeTrailingPathSeparator |
( |
string |
path | ) |
|
|
static |
Exclude traling path directory separator
- Parameters
-
- Returns
- string
◆ GetAllFiles()
| static IEnumerable<string> Energy.Base.Directory.GetAllFiles |
( |
string |
path, |
|
|
string |
search |
|
) |
| |
|
static |
◆ GetDirectory()
| static string Energy.Base.Directory.GetDirectory |
( |
string |
file | ) |
|
|
static |
Get directory path for a file without trailing directory separator.
- Parameters
-
- Returns
◆ IncludeLeadingRoot()
| static string Energy.Base.Directory.IncludeLeadingRoot |
( |
string |
path, |
|
|
string |
root |
|
) |
| |
|
static |
Include leading root directory to the path if not specified
- Parameters
-
- Returns
- string
◆ IncludeTrailingPathSeparator()
| static string Energy.Base.Directory.IncludeTrailingPathSeparator |
( |
string |
path | ) |
|
|
static |
Include trailing path directory separator if not exists. To avoid platform specific directory separator character problem, like adding backslash after slash, use SetQualifiedDirectorySeparator method on path string before.
- Parameters
-
- Returns
- string
◆ Make()
| static bool Energy.Base.Directory.Make |
( |
string |
path | ) |
|
|
static |
Make directory
- Parameters
-
- Returns
- True if directory exists or was created sucesfully
◆ SetQualifiedDirectorySeparator()
| static string Energy.Base.Directory.SetQualifiedDirectorySeparator |
( |
string |
path | ) |
|
|
static |
Convert slash separator to System.IO.Path.DirectorySeparatorChar including both versions.
- Parameters
-
◆ Tree()
| static Tree<string> Energy.Base.Directory.Tree |
( |
string |
root, |
|
|
int |
depth |
|
) |
| |
|
static |
The documentation for this class was generated from the following file: