Re: [python-win32] Recycle bin deletion date - mixing shell and winshell?

2018-01-15 Thread Durumdara
Dear Members!

Thank you for "real_filename" info!
It is working well!

Best regars
  dd
___
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32


Re: [python-win32] Recycle bin deletion date - mixing shell and winshell?

2018-01-11 Thread Tim Roberts
Durumdara wrote:
>
> The winshell module
> (https://winshell.readthedocs.io/en/latest/recycle-bin.html) retreives
> recycle bin files for me, I can see the deletion date, but not the
> real filename in filesystem (to I can delete the older ones).

The documentation does not describe it, but if you look in the source
code (which should always be your fallback for True Answers), you'll see
that the ShellRecycledItem object has a real_filename() method that
returns the information you want.

The documentation is on github, if you want to submit a fix.

-- 
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.

___
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32


[python-win32] Recycle bin deletion date - mixing shell and winshell?

2018-01-11 Thread Durumdara
Dear Members!

I tried to find a way to get the file deletion date from recycle bin files.

As I see the IShellFolder's GetDisplayNameOf don't give me data about it,
only original and real filename.

The winshell module (
https://winshell.readthedocs.io/en/latest/recycle-bin.html) retreives
recycle bin files for me, I can see the deletion date, but not the real
filename in filesystem (to I can delete the older ones).

Now I may mix the two modes with a dict which full of the uppercased
original filenames, and I may look up all real filenames, but it would be
better if I could handle whole thing in one module.

Does PyWin supports the get "deletion date" from a Recycle Bin file?

As I read somewhere it needs IShellFolder2 interface, but I may remember
wrong.

Thank you

Best Regards
dd
___
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32