Class PathUtility
Namespace: Ludiq
Syntax
public static class PathUtility
Methods
ChangeFileName(String, String)
Declaration
public static string ChangeFileName(string path, string newFileName)
Parameters
Returns
CreateDirectoryIfNeeded(String)
Declaration
public static void CreateDirectoryIfNeeded(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
CreateParentDirectoryIfNeeded(String)
Declaration
public static void CreateParentDirectoryIfNeeded(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
DeleteDirectoryIfExists(String)
Declaration
public static void DeleteDirectoryIfExists(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
FromAssets(String)
Declaration
public static string FromAssets(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
FromEditorResources(String)
Declaration
public static string FromEditorResources(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
FromProject(String)
Declaration
public static string FromProject(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
GetRelativePath(String, String)
Declaration
public static string GetRelativePath(string path, string directory)
Parameters
Returns
GetRootPath(String, String, Boolean)
Declaration
public static string GetRootPath(string rootFileName, string defaultRootFolderPath, bool autoCreate)
Parameters
Returns
MakeSafeFilename(String, Char)
Declaration
public static string MakeSafeFilename(string filename, char replace)
Parameters
Type |
Name |
Description |
String |
filename |
|
Char |
replace |
|
Returns
TryPathsForFile(String, IEnumerable<String>)
Declaration
public static string TryPathsForFile(string fileName, IEnumerable<string> directories)
Parameters
Returns
TryPathsForFile(String, String[])
Declaration
public static string TryPathsForFile(string fileName, params string[] directories)
Parameters
Returns