Class PathUtility
Collection of utility methods for working with the file system.
Inheritance
System.Object
PathUtility
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
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.String | path1 | |
System.String | path2 |
Returns
Type | Description |
---|---|
System.String |
CombinePaths(String[])
Combines the array of strings into a filesystem path.
Declaration
public static string CombinePaths(string[] paths)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | paths |
Returns
Type | Description |
---|---|
System.String |
CreateSymlink(String, String)
Create a symlink.
Declaration
public static void CreateSymlink(string destinationPath, string linkPath)
Parameters
Type | Name | Description |
---|---|---|
System.String | destinationPath | |
System.String | linkPath |
Delete(String)
Delete a file.
Declaration
public static void Delete(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | 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.String | path |
Returns
Type | Description |
---|---|
System.String |
GetTempPath()
Returns the temporary directory location from the system.
Declaration
public static string GetTempPath()
Returns
Type | Description |
---|---|
System.String |