PathUtil Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This type is forwarded from MS.VS.Shell.xx.dll
public ref class PathUtil abstract sealed
public ref class PathUtil abstract sealed
class PathUtil abstract sealed
public static class PathUtil
type PathUtil = class
Public Module PathUtil
- Inheritance
-
PathUtil
Methods
ArePathsEqual(String, String) |
Determines if two paths are equal. This method does not treat Path.DirectorySeparatorChar and Path.AltDirectorySeparatorChar as equivalent. |
ContainsReparsePoint(String, String) |
Determines if any level in the given path is a Junction, up to |
DerelativizePath(String, String) |
Combines a relative path with a base path to return a rooted version of the relative path, collapsing any ".." segments that appear at the beginning of the relative path. |
GetCommonPathPrefix(String, String) |
Returns the longest leading string that is common to |
GetFileSystemCasing(String) |
Returns the path with casing that matches what's on the file system. |
HasInvalidChars(String) |
Returns whether |
IsDescendant(String, String) |
Indicates whether the a child path is a descendant of a parent directory. This is a purely textual computation indicating that the child could be a descendant of the parent; there is no file system interaction to determine whether child actually is a descendant of parent. |
IsDirectorySeparator(Char) |
Determines if a character is a directory separator |
IsImplicitDirectory(String) |
Determines if the given directory is one of the implicit directories contained in all directories (i.e. "." or "..") |
IsNormalized(String) |
Indicates whether the given path is in normalized form. |
IsNormalizedPath(String) |
Extension method to check whether the given path is in normalized form. |
IsReparsePoint(String) |
Determines if the given path is a Junction. |
IsRoot(String) |
Determines if the given path represents a root directory. |
LooksLikeLocalRootedFilePath(String) |
Heuristically determines whether the given string "looks like" a local rooted file path -- e.g. begins with a drive letter followed by ":", contains only valid path characters, etc. |
MakeRelative(String, String) |
Returns a relative path from |
Normalize(String) |
Returns a normalized form of the given path. What it does:
What it doesn't do:
|
NormalizePath(String) |
Extension method to return a normalized form of the given path. |
SafeGetExtension(String) |
Return the extension of the specified path string. This always returns a non-null string for the extension. It will return Empty if:
Otherwise, |