shell.SHFileOperation

int, int = SHFileOperation(operation)

Copies, moves, renames, or deletes a file system object.

Parameters

operation : SHFILEOPSTRUCT

Defines the operation to perform.

Return Value

The result is a tuple containing int result of the function itself, and the result of the fAnyOperationsAborted member after the operation. If Flags contains FOF_WANTMAPPINGHANDLE, returned tuple will have a 3rd member containing a sequence of 2-tuples with the old and new file names of renamed files. This will only have any content if FOF_RENAMEONCOLLISION was specified, and some filename conflicts actually occurred.