Class PathUtility
Collection of utility methods for working with the file system.
Inheritance
System.Object
PathUtility
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()
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public static class PathUtility
Methods
CombinePaths(String, String)
Combines two strings into a filesystem path.
Declaration
public static string CombinePaths(string path1, string path2)
Parameters
Type | Name | Description |
---|---|---|
System. |
path1 | |
System. |
path2 |
Returns
Type | Description |
---|---|
System. |
CombinePaths(String[])
Combines the array of strings into a filesystem path.
Declaration
public static string CombinePaths(string[] paths)
Parameters
Type | Name | Description |
---|---|---|
System. |
paths |
Returns
Type | Description |
---|---|
System. |
CreateSymlink(String, String)
Create a symlink.
Declaration
public static void CreateSymlink(string destinationPath, string linkPath)
Parameters
Type | Name | Description |
---|---|---|
System. |
destinationPath | |
System. |
linkPath |
Delete(String)
Delete a file.
Declaration
public static void Delete(string path)
Parameters
Type | Name | Description |
---|---|---|
System. |
path |
GetAbsolutePath(String)
Get the absolute file path of the given directory or file.
Declaration
public static string GetAbsolutePath(string path)
Parameters
Type | Name | Description |
---|---|---|
System. |
path |
Returns
Type | Description |
---|---|
System. |
GetTempPath()
Returns the temporary directory location from the system.
Declaration
public static string GetTempPath()
Returns
Type | Description |
---|---|
System. |