[Top]
System
|
Method System.normalize_path()
- Method
normalize_path
-
string System.normalize_path(string path)
- Description
-
Normalize an NT filesystem path.
The following transformations are currently done:
Trailing slashes are removed.
Extraneous empty extensions are removed.
Short filenames are expanded to their corresponding long
variants.
Forward slashes ('/') are converted to backward slashes ('\').
Current- and parent-directory paths are removed ("." and "..").
Relative paths are expanded to absolute paths.
Case-information is restored.
- Returns
-
A normalized absolute path without trailing slashes.
Throws errors on failure, e.g. if the file or directory doesn't
exist.
- Note
-
File fork information is currently not supported (invalid data).
- See also
-
combine_path() , combine_path_nt()
|