Class PathUtils
Inheritance
System.Object
PathUtils
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Aurigma.DesignAtoms.dll
Syntax
public static class PathUtils
Methods
AreFoldersMatch(DirectoryInfo, DirectoryInfo)
Declaration
public static bool AreFoldersMatch(DirectoryInfo folder0, DirectoryInfo folder1)
Parameters
| Type |
Name |
Description |
| System.IO.DirectoryInfo |
folder0 |
|
| System.IO.DirectoryInfo |
folder1 |
|
Returns
| Type |
Description |
| System.Boolean |
|
AreFoldersMatch(String, String)
Declaration
public static bool AreFoldersMatch(string path0, string path1)
Parameters
| Type |
Name |
Description |
| System.String |
path0 |
|
| System.String |
path1 |
|
Returns
| Type |
Description |
| System.Boolean |
|
CleanFolderName(String)
Declaration
public static string CleanFolderName(string folderName)
Parameters
| Type |
Name |
Description |
| System.String |
folderName |
|
Returns
| Type |
Description |
| System.String |
|
EnsureFolderExists(String)
Declaration
public static void EnsureFolderExists(string path)
Parameters
| Type |
Name |
Description |
| System.String |
path |
|
Declaration
public static string ExtractFilePath(string root, string absoluteFilePath, char? separatorChar = null)
Parameters
| Type |
Name |
Description |
| System.String |
root |
|
| System.String |
absoluteFilePath |
|
| System.Nullable<System.Char> |
separatorChar |
|
Returns
| Type |
Description |
| System.String |
|
GetFolder(String, Char)
Declaration
public static string GetFolder(string path, char separatorChar)
Parameters
| Type |
Name |
Description |
| System.String |
path |
|
| System.Char |
separatorChar |
|
Returns
| Type |
Description |
| System.String |
|
GetName(String)
Declaration
public static string GetName(string path)
Parameters
| Type |
Name |
Description |
| System.String |
path |
|
Returns
| Type |
Description |
| System.String |
|
HasExtension(String, String)
Declaration
public static bool HasExtension(string filePath, string extension)
Parameters
| Type |
Name |
Description |
| System.String |
filePath |
|
| System.String |
extension |
|
Returns
| Type |
Description |
| System.Boolean |
|
IsIncludedInRootFolder(String, String)
Declaration
public static bool IsIncludedInRootFolder(string selectedFolder, string rootFolder)
Parameters
| Type |
Name |
Description |
| System.String |
selectedFolder |
|
| System.String |
rootFolder |
|
Returns
| Type |
Description |
| System.Boolean |
|
IsRootFolder(String)
Declaration
public static bool IsRootFolder(string path)
Parameters
| Type |
Name |
Description |
| System.String |
path |
|
Returns
| Type |
Description |
| System.Boolean |
|
NormalizePath(String)
Declaration
public static string NormalizePath(string path)
Parameters
| Type |
Name |
Description |
| System.String |
path |
|
Returns
| Type |
Description |
| System.String |
|
NormalizePath(String, Char)
Declaration
public static string NormalizePath(string path, char pathSeparatorChar)
Parameters
| Type |
Name |
Description |
| System.String |
path |
|
| System.Char |
pathSeparatorChar |
|
Returns
| Type |
Description |
| System.String |
|
ReplaceIllegalChars(String)
Declaration
public static string ReplaceIllegalChars(string pathPart)
Parameters
| Type |
Name |
Description |
| System.String |
pathPart |
|
Returns
| Type |
Description |
| System.String |
|