Move files/directories to Recycle Bin using standard Python libs

kyosohma at gmail.com kyosohma at gmail.com
Wed Aug 15 19:42:37 CEST 2007


On Aug 15, 11:39 am, Kevin D. Smith <Kevin.Sm... at sas.com> wrote:
> I would like to move files and directories to the Recycle Bin on
> Windows from Python.  I have found some older articles describing how
> to do this, but they require additional packages to be installed.  I'm
> working on a plugin for an existing project and only have the standard
> library to work with.  Is there a way to use the Recycle Bin using
> standard Python?
>
> --
> Kevin D. Smith

Sounds like a Windows only thing to me, so you'll probably have to use
the win32 package regardless. See the following links:

http://mail.python.org/pipermail/python-list/2004-October/287638.html
http://tgolden.sc.sabren.com/python/win32_how_do_i/copy-a-file.html

Mike




More information about the Python-list mailing list