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

Mono.Unix.UnixDirectoryInfo.GetFileSystemEntries Method

Returnes all the file system entries the UnixFileSystemInfo.FullPath directory.

public UnixFileSystemInfo[] GetFileSystemEntries (System.Text.RegularExpressions.Regex regex)

Parameters

regex
A System.Text.RegularExpressions.Regex instance which is used for matching against directory entry names.

Returns

A Mono.Unix.UnixFileSystemInfo array containing all file system entries within the UnixFileSystemInfo.FullPath directory.

Exceptions

TypeReason
UnauthorizedAccessException The process cannot access UnixFileSystemInfo.FullPath. [Mono.Unix.Native.Errno.EACCESS]
System.IO.DirectoryNotFoundExceptionUnixFileSystemInfo.FullPath is not a directory. [Mono.Unix.Native.Errno.ENOTDIR]
System.IO.FileNotFoundExceptionUnixFileSystemInfo.FullPath doesn't exist, or is an empty string. [Mono.Unix.Native.Errno.ENOENT]
Mono.Unix.UnixIOException

Insufficient memory to complete the operation. [Mono.Unix.Native.Errno.ENOMEM]

-or-

Too many file descriptors in use by the process. [Mono.Unix.Native.Errno.EMFILE]

-or-

Too many files are currently open in the system. [Mono.Unix.Native.Errno.ENFILE]

Remarks

Requirements

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