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

Function file-rename

file-rename sourcePath destPath

Changes the name of a file or directory.

Parameters:
sourcePath - String representing original name of the file.
destPath - String representing the new name of the file.
Returns:
True if the file was successfully renamed. False otherwise.

The destPath may refer to a diferent directory than sourcePath as long as it is in the same file system.

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