In the code I maintain I run across:
from win32com.shell import shell, shellcon
# ...
result,nAborted,mapping = shell.SHFileOperation(
(parent,operation,source,target,flags,None,None))
In Python27\Lib\site-packages\win32comext\shell\
(note win32comext) I just have a shell.pyd
binary.
- What is the return value of shell.SHFileOperation for a deletion (
operation=FO_DELETE
in the call above) ? Where is the code for the shell.pyd ? - Can I get the list of files actually deleted from this return value or do I have to manually check afterwards ?
EDIT: accepted answer answers Q1 - having a look at the source of pywin32-219\com\win32comext\shell\src\shell.cpp
I see that static PyObject *PySHFileOperation()
delegates to SHFileOperation which does not seem to return any info on which files failed to be deleted - so I guess answer to Q2 is "no".