win32file.MoveFile

MoveFile(existingFileName, newFileName)

Renames an existing file or a directory (including all its children).

Parameters

existingFileName : PyUnicode

Name of the existing file

newFileName : PyUnicode

New name for the file