rmdir(dirname)
rmdir(dirname, 's')
res = rmdir(dirname)
res = rmdir(dirname, 's')
[res, msg] = rmdir(dirname)
[res, msg] = rmdir(dirname, 's')
| Parameter | Description |
|---|---|
| dirname | a string: file or directory name. |
| 's' | a string: removes also subdirectories. |
| Parameter | Description |
|---|---|
| res | a logical: true or false. |
| msg | a string: error message or ''. |
res = rmdir(dirname) removes the directory dirname.
If the directory is not empty, you must use the s argument.
mkdir([tempdir(), 'test'])
rmdir([tempdir(), 'test'])
| Version | Description |
|---|---|
| 1.0.0 | initial version |