Class 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 |