Overview Module Function Class Tea 3.2.4 Reference Documentation
© 2009 PDM&FC

Function file-unlink-recursive

file-unlink-recursive pathName

Recursively removes all the contents of a directory.

Parameters:
pathName - String representing the name of the directory to delete. It may also refer to a file.
Returns:
True if all the directory contents and the directory itself were successfully removed. False otherwise.

If it fails to remove one of the directory entries then it immediatly ends and does not try to remove the remaining entries. The order in which the entries get removed is not specified. Removal of a directory entry may fail for a variety of reasons, the most common being insuficient permissions.

Do be cautious when using this function. It is a mass destruction weapon.


Overview Module Function Class Tea 3.2.4 Reference Documentation
© 2009 PDM&FC
Report a bug or request new features
© 2009