Class PathUtility
Syntax
public static class PathUtility
Methods
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 |
|
DeleteProjectFileIfExists(String, Boolean)
Declaration
public static void DeleteProjectFileIfExists(string filePath, bool checkoutInVersionControl = false)
Parameters
| Type |
Name |
Description |
| String |
filePath |
|
| Boolean |
checkoutInVersionControl |
|
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
GetPackageRootPath()
Declaration
public static string GetPackageRootPath()
Returns
GetRelativePath(String, String)
Declaration
public static string GetRelativePath(string path, string directory)
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