The os.Path class / os.Path methods |
Renames a file or a directory.
os.Path.rename( oldname STRING, newname STRING ) RETURNING result INTEGER
The function returns TRUE if the file or directory has been successfully renamed, FALSE otherwise.
On UNIX™ platforms, you can rename/move files and directories.
On Microsoft™ Windows™ platforms only files can be renamed/moved. However, on Windows you can move files across disks and directories.