Overview Module Function Class Tea 3.1.0 Reference Documentation
© 2002 PDM&FC

Function file-unlink

file-unlink fileName

Deletes a file.

Parameters:
fileName - String representing the name of a file.
Returns:
True if the file was successfully removed. False otherwise.

Removes the file whose name was given as argument. The name can either refer to a regular file or to a directory. In the case of a directory it must be empty for the function to complete successfully. The file-unlink function returns a boolean value. It returns true if the file was successfully deleted. It returns false if the file could not be deleted. This can happen if there is no file with that name, or if the process does not have the necessary permissions to remove the file.

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