About Anaconda Help Download Anaconda

Python library to natively send files to Trash (or Recycle bin) on all platforms.

Installers

  • linux-s390x v1.8.2
  • linux-64 v1.8.2
  • osx-arm64 v1.8.2
  • osx-64 v1.8.2
  • linux-aarch64 v1.8.2
  • win-64 v1.8.2
  • linux-32 v1.5.0
  • linux-ppc64le v1.8.2
  • win-32 v1.5.0
  • noarch v1.8.0

conda install

To install this package run one of the following:
conda install anaconda::send2trash

Description

Send2Trash is a small package that sends files to the Trash (or Recycle Bin) natively and on all platforms. On OS X, it uses native FSMoveObjectToTrashSync Cocoa calls or can use pyobjc with NSFileManager. On Windows, it uses native IFileOperation call if on Vista or newer and pywin32 is installed or falls back to SHFileOperation calls. On other platforms, if PyGObject and GIO are available, it will use this. Otherwise, it will fallback to its own implementation of the trash specifications from freedesktop.org. ctypes is used to access native libraries, so no compilation is necessary.


© 2024 Anaconda, Inc. All Rights Reserved. (v4.0.5) Legal | Privacy Policy