Table of Contents

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 = 0

A fully qualified path, independent of any current directory: e.g. C:\Windows or C:</code> on Windows, /usr/bin or / on Unix.

DriveCurrentDirectoryRelative = 3

Windows only. A path with a drive letter but no root directory, relative to the current directory of that drive: e.g. C:Windows or C:.

DriveRootRelative = 2

Windows only. A path rooted without a drive letter, relative to the root of the current drive: e.g. \Windows or </code>.

Relative = 1

A 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, including C:foo and \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.