The Autopackage API |
Table of Contents / Public library / Filesystem |
Miscellaneous filesystem-related functions.
resolveLink | SYMLINK |
removeDir | <DIRECTORY> |
dirIsEmpty | <DIRECTORY> |
prune | <DIRECTORY> |
haveWriteAccess | <DIRECTORY> |
resolveLink | ||||
Syntax: resolveLink SYMLINK | ||||
| ||||
Recursively resolve symbolic links. | ||||
Example:
|
removeDir | ||||
Syntax: removeDir <DIRECTORY> | ||||
| ||||
Recursively check if DIRECTORY is empty, and remove it if it is.
See also: dirIsEmpty() |
dirIsEmpty | ||||
Syntax: dirIsEmpty <DIRECTORY> | ||||
| ||||
Check whether DIRECTORY is empty. If DIRECTORY only contains empty subdirectories then DIRECTORY will be considered empty. |
prune | ||
Syntax: prune <DIRECTORY> | ||
| ||
If DIRECTORY is empty, change to the parent directory and delete DIRECTORY. Repeats until it reaches a directory that is no longer empty. See also: removeDir(). | ||
Example:
|
haveWriteAccess | ||||
Syntax: haveWriteAccess <DIRECTORY> | ||||
| ||||
Checks whether we have write access to DIRECTORY. |