Mono Class Library: Mono.Unix.UnixFileSystemInfo Overview | Members

Mono.Unix.UnixFileSystemInfo.OriginalPath Property

The original string passed to the UnixFileSystemInfo(string) constructor.

protected string OriginalPath { set; get; }

Value

A string containing the original string passed to the UnixFileSystemInfo(string) constructor. It may contain relative path information without a qualifying directory, if that's what was originally provided to the constructor.

Remarks

This is primarily useful if you need relative path names instead of fully-qualified directory names, such as when dealing with symbolic links (with Mono.Unix.UnixSymbolicLinkInfo).

It is possible for the object state to be inconsistent if UnixFileSystemInfo.FullPath is set but not UnixFileSystemInfo.OriginalPath. All methods in this class do not use OriginalPath but use FullPath; subclasses such as Mono.Unix.UnixSymbolicLinkInfo do use OriginalPath. If FullPath is set then OriginalPath should also be set if possible for consistency.

Requirements

Namespace: Mono.Unix
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0