Class PathUtils
Inheritance
object
PathUtils
Namespace: i5.Toolkit.Core.Utilities
Assembly: cs.temp.dll.dll
Syntax
public static class PathUtils
Methods
RewriteToAbsolutePath(string, string)
Combines an absolute base path with an absolute or relative path. If addedPath is absolute, it is taken as the combined result, disregarding the base path. If addedPath is relative, it is combined based on the basePath Works with local file paths and Uris
Declaration
public static string RewriteToAbsolutePath(string basePath, string addedPath)
Parameters
Type | Name | Description |
---|---|---|
string | basePath | The base path where the combination of paths should start. Must be absolute. |
string | addedPath | The added path that is combined with the base path. Can be relative or absolute. |
Returns
Type | Description |
---|---|
string | The combined path where the basePath is concatenated with the relative addedPath or the absolute addedPath is returned |