win32file.MoveFileW

MoveFileW(existingFileName, newFileName)

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

Parameters

existingFileName : string

Name of the existing file

newFileName : string

New name for the file