Click or drag to resize

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: 19.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: String

[Missing <returns> documentation for "M:DHI.Mike1D.Generic.FilePath.GetRelativeFilePath(System.String,System.String)"]

See Also