removes a directory - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : System : External Functions : rmdir

rmdir - removes a directory

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

oldDir:=currentdirmydir/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

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam