Creates a new Mono.Unix.UnixDirectoryInfo instance containing information about the directory path.
- path
- A string containing the directory to query.
Type Reason ArgumentNullException path is null. ArgumentException path contains invalid characters; see UnixPath.GetInvalidPathChars.
The path argument is permitted to specify relative or absolute path information. Relative path information is interpreted as relative to the current working directory.
Note: To obtain the current working directory, see .Mono.Unix.UnixDirectoryInfo.GetCurrentDirectory.It is valid to construct Mono.Unix.UnixDirectoryInfo objects for directories that do not exist or for files. However, attempts to use the Mono.Unix.UnixDirectoryInfo instance may generate InvalidOperationExceptions. Use UnixFileSystemInfo.Exists to see if path exists and UnixFileSystemInfo.IsDirectory to ensure that path is a directory.
Namespace: Mono.Unix
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0