About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
See full specifications

linux default iconSend2Trash3k Publisher's description

Send file to trash natively under Linux, Windows and Mac OS X

Send2Trash is a small package that sends files to the Trash (or Recycle Bin) natively and on all platforms. On Mac OS X, it uses native FSMoveObjectToTrashSync Cocoa calls, on Windows, it uses native (and ugly) SHFileOperation win32 calls. On other platforms, it moves the file to the first folder it finds that looks like a trash (so far, it's known to work on Ubuntu).


Download the source from http://hg.hardcoded.net/send2trash and install it with:

sudo python setup.py install

On Windows, you'll need Visual Studio 2008 to compile it. Note that the install you'll get will not be a "universal" package. If you install it on OS X, only the "osx" module will be compiled, and if you install it on Windows, only the "win" module will be compiled.

To have a cross-platform package you can ship around, you'll have compile the package on both platforms and merge the results so that both compiled modules are in the same package.


from send2trash import send2trash

When there's a problem OSError is raised.


What's New in This Release:

В· Improved plat_other to follow freedesktop.org trash specification.

System Requirements:

В· Python
Program Release Status: Major Update
Program Install Support: Install and Uninstall

Is Send2Trash3k your software?

Manage your software

Most Popular

linux default icon Watsup 1.9
Real-time compact view of system resources and which top processes are using how much.
linux default icon python-instagram 0.7.2
A Python client for the Instagram REST and Search APIs
linux default icon Phorum 5.2.17
tarted in 1998, Phorum was the original PHP and MySQL based Open Source forum software
linux default icon Disco-Light X 1.0
A disco colours, light theme for your GNOME desktop
linux default icon Bada 1.0
Bada is an audio player for dictation.

Related Category

» Education (514)
» Programming (2498)