Class PathUtility
Utility methods for path computations.
Inheritance
System.Object
PathUtility
Namespace: DNVGL.One.Compute.Core.DataTransfer
Assembly: DNVGL.One.Compute.Core.dll
Syntax
public static class PathUtility : object
Methods
View SourceIsAbsolutePath(String)
Determines if the given path is an absolute path.
Declaration
public static bool IsAbsolutePath(string path)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | path | The path. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if the given path is absolute. |
TryMakeRelativePath(String, String, out String)
Try to create a relative path from basePath to path.
Declaration
public static bool TryMakeRelativePath(string basePath, string path, out string relativePath)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | basePath | The base path. |
| System.String | path | The path. |
| System.String | relativePath | The relative path. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if the relative path could be computed. |