The Autopackage API

Table of Contents / Public library / Filesystem

Filesystem

Miscellaneous filesystem-related functions.

Functions in this category

resolveLinkSYMLINK
removeDirDIRECTORY


Details

resolveLink
Syntax: resolveLink SYMLINK
Recursively resolve symbolic links.
SYMLINK: A symbolic link file.
Outputs: The resolved filename.
Example:
touch foo
ln -s foo sym1
ln -s sym1 sym2
resolveLink sym2    # =>  foo


removeDir
Syntax: removeDir DIRECTORY
Recursively check if DIRECTORY is empty, and remove it if it is. See also: dirIsEmpty
DIRECTORY: The directory to remove.
Returns: 0 if DIRECTORY is removed, 1 otherwise.


Last update: 27/3/2003