Mono Class Library: Mono.Unix.Native.Syscall Overview | MembersMono.Unix.Native.Syscall.rmdir Method |
Removes the directory at 'path'. [Edit]
|
On success, zero is returned. On error, -1 is returned and Stdlib.GetLastError returns the translated error.
Usage
The named file is removed unless:
[Edit]
Error Details Errno.ENOTDIR A component of the path is not a directory.
Errno.ENAMETOOLONG A component of a pathname exceeded 255 characters, or an entire path name exceeded 1023 characters.
Errno.ENOENT The named directory does not exist.
Errno.ELOOP Too many symbolic links were encountered in translating the pathname.
Errno.ENOTEMPTY The named directory contains files other than "" and "" in it.
Errno.EACCES Search permission is denied for a component of the path prefix.
Errno.EACCES Write permission is denied on the directory containing the link to be removed.
Errno.EPERM The directory containing the directory to be removed is marked sticky, and neither the containing directory nor the directory to be removed are owned by the effective user ID.
Errno.EBUSY The directory to be removed is the mount point for a mounted file system.
Errno.EIO An I/O error occurred while deleting the directory entry or deallocating the inode.
Errno.EROFS The directory entry to be removed resides on a read-only file system.
Errno.EFAULT The path argument points outside the process's allocated address space.
The rmdir() system call removes a directory file whose name is given by path . The directory must not have any entries other than "." and ".." [Edit]
Namespace: Mono.Unix.Native
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0