KspPathsNormalizePath Method |
Normalizes path by resolving all upcasts. Works for both relative and absolute paths.
Namespace:
KSPDev.FSUtils
Assembly:
KSPDev_Utils.2.0 (in KSPDev_Utils.2.0.dll) Version: 2.0 for KSP v1.8+
Syntaxpublic static string NormalizePath(
string path
)
Request Example
View SourceParameters
- path
- Type: SystemString
Path to normalize.
Return Value
Type:
String
Path with no
. or
.. casts. All directory separators will be translated to
/ regardless to the platform settings.
RemarksNote that method doesn't care if the path exists.
See Also