win32file.MoveFileExW

MoveFileExW(existingFileName, newFileName, flags)

Renames an existing file or a directory (including all its children). (NT/2000 Unicode specific version).

Parameters

existingFileName : PyUnicode

Name of the existing file

newFileName : PyUnicode

New name for the file, can be None for delayed delete operation

flags : int

flag to determine how to move file (win32file.MOVEFILE_*)