| Namespace: | Sirenix.Utilities |
| Assembly: | Sirenix.Utilities |
public static class PathUtilities
public static bool CanMakeRelative(string absoluteParentPath, string absolutePath)
| System.String | absoluteParentPath | The parent path. |
| System.String | absolutePath | The path to make relative to the parent path. |
| System.Boolean | A value indicating if the path can be made relative to the parent path. |
public static string Combine(string a, string b)
| System.String | a | |
| System.String | b |
| System.String |
public static DirectoryInfo FindParentDirectoryWithName(this DirectoryInfo dir, string folderName)
| System.IO.DirectoryInfo | dir | |
| System.String | folderName |
| System.IO.DirectoryInfo |
public static string GetDirectoryName(string x)
| System.String | x |
| System.String |
public static bool HasSubDirectory(this DirectoryInfo parentDir, DirectoryInfo subDir)
| System.IO.DirectoryInfo | parentDir | The parent directory. |
| System.IO.DirectoryInfo | subDir | The sub directory. |
| System.Boolean |
public static string MakeRelative(string absoluteParentPath, string absolutePath)
| System.String | absoluteParentPath | The parent path. |
| System.String | absolutePath | The path to make relative to the parent path. |
| System.String | A relative path from parent path to path. |
public static bool TryMakeRelative(string absoluteParentPath, string absolutePath, out string relativePath)
| System.String | absoluteParentPath | The parent path. |
| System.String | absolutePath | The path to make relative to the parent path. |
| System.String | relativePath | A relative path from parent path to path. |
| System.Boolean | A value indicating if the method succeeded in making a relative path. |