Enum PathKind
- Namespace
- TruePath
- Assembly
- TruePath.dll
The kind of a LocalPath: tells how the path is anchored in the file system.
On Unix, a path is either Absolute or Relative. Windows additionally has two kinds of paths that are only partially anchored: DriveRootRelative and DriveCurrentDirectoryRelative.
public enum PathKind
Fields
Absolute = 0A fully qualified path, independent of any current directory: e.g.
C:\WindowsorC:</code> on Windows,/usr/binor/on Unix.DriveCurrentDirectoryRelative = 3Windows only. A path with a drive letter but no root directory, relative to the current directory of that drive: e.g.
C:WindowsorC:.DriveRootRelative = 2Windows only. A path rooted without a drive letter, relative to the root of the current drive: e.g.
\Windowsor</code>.Relative = 1A path relative to the current directory: e.g.
Windows,..\Windows, or the empty path (the current directory itself).On Unix, every path not starting with
/is of this kind, includingC:fooand\foo.
Remarks
This type is experimental: new members may be added, and existing paths may be reclassified, without a major version bump. In particular, UNC and DOS device paths on Windows are not classified yet.