In the code that I support, I look through:
from win32com.shell import shell, shellcon
In Python27\Lib\site-packages\win32comext\shell\ (note win32comext) I have a binary file shell.pyd .
- What is the shell.SHFileOperation return value for deletion (
operation=FO_DELETE in the call above)? Where is the code for shell.pyd? - Is it possible to get a list of files actually deleted from this return value, or do I need to manually check it after?
EDIT: accepted answers to Q1 answers - view source pywin32-219\com\win32comext\shell\src\shell.cpp I see that static PyObject *PySHFileOperation() delegates to SHFileOperation , which does not seem to return any information about which the files could not be deleted, so I think the answer to Q2 is "no."
Mr_and_Mrs_D Mar 14 '15 at 19:23 2015-03-14 19:23
source share