Click or drag to resize

PathComparerNormalize Method

Converts path to its normalized representation:
  • Converts relative path to absolute path, using current directory and current drive information
  • Replaces 'dot' path segments ('.' and '..') with appropriate directories
  • Converts directory separators to primary directory separator
  • Converts shortened 8.3 names to long names
  • Strips trailing directory separators
  • It's not required to normalize casing

Namespace:  PDTec.IceNet.Sdk.Utils
Assembly:  PDTec.IceNet.Sdk (in PDTec.IceNet.Sdk.dll) Version: 7.2.0.0 (7.2.7583.15464)
Syntax
C#
public static string Normalize(
	string path
)

Parameters

path
Type: SystemString
Can be null.

Return Value

Type: String
Normalized form of a given path, or null if path is null.
Remarks
Normalized form is obtained mainly by passing path to GetFullPath(String), and stripping trailing separators afterwards.
See Also