rmdir - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

rmdir

removes a directory

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

rmdir(dirName)

Parameters

dirName

-

name of the directory to remove

Description

• 

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.

Examples

mkdirmydir

mkdirmydir/subdir

oldDircurrentdirmydir/subdir

/u/joeuser/work

(1)

currentdir

/u/joeuser/work/mydir/subdir

(2)

currentdiroldDir

/u/joeuser/work/mydir/subdir

(3)

rmdirmydir

 Error, (in rmdir) directory exists and is not empty

rmdirmydir/subdir

rmdirmydir

See Also

currentdir

fremove

getenv

libname

mkdir

 


Download Help Document