FilePathGetRelativeFilePath Method |
Make the filepath relative to baseDirectory. If not succeding, return original file path.
Namespace:
DHI.Mike1D.Generic
Assembly:
DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 16.0.0.0 (11.1.1.1111)
Syntax public static string GetRelativeFilePath(
string filePath,
string baseDirectory
)
Parameters
- filePath
- Type: SystemString
Absolute file path to find relative file path for. - baseDirectory
- Type: SystemString
Directory to use as base. Must be rooted and must only contain directory info (no file name part)
Return Value
Type:
StringSee Also