Method GetCanonicalPath
GetCanonicalPath(FileSystemInfo)
Returns the absolute path of this with all references resolved and
any drive letters normalized to upper case on Windows. An
absolute path is one that begins at the root of the file
system. The canonical path is one in which all references have been
resolved. For the cases of '..' and '.', where the file system supports
parent and working directory respectively, these are removed and replaced
with a direct directory reference.
Declaration
public static string GetCanonicalPath(this FileSystemInfo path)
Parameters
Type |
Name |
Description |
FileSystemInfo |
path |
This instance.
|
Returns
Type |
Description |
System.String |
The canonical path of this file.
|