Utility methods to work with folder and file paths. More...
Static Public Member Functions | |
static String | Combine (Char separator, params String[] paths) |
Obsolete More... | |
static String | Combine (params String[] paths) |
Combine multiple paths. Internally calls Path.Combine(string, string). More... | |
static string | GetPathWithoutExtension (string path) |
Return the path without the file extension. More... | |
static bool | IsRelativeToFolder (String path, String folder) |
Check if a path is relative to a folder. More... | |
static bool | MakeRelativeToFolder (String path, String folder, out String result) |
Tries to make an input path relative to a folder. More... | |
static bool | MakeRelativeToFolderFast (string path, string folderWithSlashes, out string result) |
Tries to make an input path relative to a folder. More... | |
static string | MakeSane (String path) |
Unify path separators and replacing all different amounts of slashes to one forward slash. More... | |
Utility methods to work with folder and file paths.
|
inlinestatic |
Obsolete
|
inlinestatic |
Combine multiple paths. Internally calls Path.Combine(string, string).
paths | Path to combine. |
|
inlinestatic |
Tries to make an input path relative to a folder.
path | Input path to make relative |
folder | Folder to make the input path relative against |
result | Resulting relative path |
true
if a relative path could be constructed
|
inlinestatic |
Tries to make an input path relative to a folder.
path | Input path to make relative |
folderWithSlashes | Folder to make the input path relative against, is correctly formatted with forward slashes |
result | Resulting relative path |
true
if a relative path could be constructed
|
inlinestatic |
Return the path without the file extension.
path | Path |
|
static |
Check if a path is relative to a folder.
path | Path to check |
folder | Path to folder |
true
if the path is relative to the folder
|
static |
Unify path separators and replacing all different amounts of slashes to one forward slash.
path | Path to normalize |