Click or drag to resize

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+
Syntax
C#
public static string NormalizePath(
	string path
)
Request Example View Source

Parameters

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.
Remarks
Note that method doesn't care if the path exists.
See Also