Class MetaFilePathUtil
Namespace: Workspace.XBR.Xperiflow.MetaFileSystem
Assembly: Xperiflow.dll
Declaration
public static class MetaFilePathUtil
Methods
JoinParentAndName(string, string, bool)
Joins a parent and name with a joiner.
Declaration
public static string JoinParentAndName(string parent, string name, bool asPosix = true)
Returns
System.String
The joined parent and name.
Parameters
| Type | Name | Description |
|---|---|---|
System.String | parent | The parent to join. |
System.String | name | The name to join. |
System.Boolean | asPosix |
PathAsPosix(string)
Returns the path in posix format (forward slashes). This ensures that all paths are used with forward slashes.
Declaration
public static string PathAsPosix(string path)
Returns
System.String
The path as posix.
Parameters
| Type | Name | Description |
|---|---|---|
System.String | path | The path to convert. |
PathAsWindows(string)
Returns the path in windows format (backward slashes). This ensures that all paths are used with backward slashes.
Declaration
public static string PathAsWindows(string path)
Returns
System.String
Parameters
| Type | Name |
|---|---|
System.String | path |