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

Mono.Unix.UnixDirectoryInfo.Create Method

Create the directory UnixFileSystemInfo.FullName.

[System.CLSCompliant(false)]
public void Create (Mono.Unix.Native.FilePermissions mode)

See Also

Mono.Unix.Native.Syscall.mkdir

Parameters

mode
A Mono.Unix.Native.FilePermissions instance containing the file permissions the created directory should have.

Exceptions

TypeReason
UnauthorizedAccessException

Search permission is denied for a component of UnixFileSystemInfo.FullName. [Mono.Unix.Native.Errno.EACCESS]

-or-

Write permission is denied on the parent directory of UnixFileSystemInfo.FullName. [Mono.Unix.Native.Errno.EACCESS]

System.IO.DirectoryNotFoundException A component of UnixFileSystemInfo.FullName is not a directory. [Mono.Unix.Native.Errno.ENOTDIR]
System.IO.FileNotFoundExceptionUnixFileSystemInfo.FullName does not exist. [Mono.Unix.Native.Errno.ENOENT]
System.IO.IOException

An I/O error occurred while making the file system entry or allocating the inode. [Mono.Unix.Native.Errno.EIO]

-or-

An I/O error occurred while reading from or writing to the file system. [Mono.Unix.Native.Errno.EIO]

-or-

The directory entry to be created resides in a read-only file system. [Mono.Unix.Native.Errno.EROFS]

-or-

UnixFileSystemInfo.FullName cannot be created because there is no space left on the filesystem that will contain the directory. See UnixDriveInfo.AvailableFreeSpace. [Mono.Unix.Native.Errno.ENOSPC]

-or-

There are no free inodes on the file system on which the directory is being created. [Mono.Unix.Native.Errno.ENOSPC]

System.IO.PathTooLongExceptionUnixFileSystemInfo.FullName was too long. [Mono.Unix.Native.Errno.ENAMETOOLONG]
Mono.Unix.UnixIOException

Too many symbolic links were encountered in translating UnixFileSystemInfo.FullName. [Mono.Unix.Native.Errno.ELOOP]

-or-

UnixFileSystemInfo.FullName already exists. [Mono.Unix.Native.Errno.EEXIST]

-or-

UnixFileSystemInfo.FullName cannot be created because the user's quota of disk blocks on the file system that will contain the directory has been exhausted. [Mono.Unix.Native.Errno.EDQUOT]

-or-

UnixFileSystemInfo.FullName cannot be created because the user's quota of inodes on the file system on which the directory is being created has been exhausted. [Mono.Unix.Native.Errno.EDQUOT]

Remarks

Requirements

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