-
Notifications
You must be signed in to change notification settings - Fork 0
File_rename
hpgDesigns edited this page Aug 8, 2021
·
1 revision
NOTOC {{-}}
Renames the given file.
- oldname: The name of the file to rename.
- newname: The desired new name for the file.
'''Note: '''This function currently uses Windows API's MoveFile function. Because of this, you must specify the full path for both parameters. (This also means you can use this function to move files)
Returns 1 if successful, 0 otherwise.
file_rename('d:/really.txt', 'd:/awesome.txt');This is number 1