rmdir
removes a directory
Calling Sequence
Parameters
Description
Examples
rmdir(dirName)
dirName
-
name of the directory to remove
The rmdir function removes a directory from the file system of the underlying operating system.
The dirName argument, which must be a Maple string or symbol, specifies the path name of the directory to remove.
The set of characters that are permitted in directory names is system dependent. Likewise, the character used to separate the components of a directory is system dependent. If the backslash character is to appear in the string, it must be doubled up, because Maple strings use the backslash character as an escape character.
If successful, rmdir will return NULL (that is, nothing). If unsuccessful, an exception will be raised.
mkdir⁡mydir
mkdir⁡mydir/subdir
oldDir≔currentdir⁡mydir/subdir
/u/joeuser/work
currentdir⁡
/u/joeuser/work/mydir/subdir
currentdir⁡oldDir
rmdir⁡mydir
Error, (in rmdir) directory exists and is not empty
rmdir⁡mydir/subdir
See Also
currentdir
fremove
getenv
libname
mkdir
Download Help Document