trashcan 0.2.4

Move files to trash can programmatically


To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

Trash can

Build Status Windows Build Status

Move files and directories to trash can (Recycle bin) in D programming language. Currently it contains only one function moveToTrash which places passed file or directory to trash can.

Platform support

On Freedesktop environments (e.g. GNU/Linux) the library will follow Trash Can Specification.

On Windows SHFileOperation is used.

On OSX FSMoveObjectToTrashSync is used.

Other platforms are not supported.

Future improvements:

  • Interface for observing the trash can contents (something like VFS).
  • Ability to restore deleted files.

Examples

Put to trash can

Run to put file or directory to trash can:

dub examples/put.d path/to/file
Authors:
  • Roman Chistokhodov
Dependencies:
xdgpaths
Versions:
0.2.4 2018-May-05
0.2.3 2018-Feb-13
0.2.2 2017-Mar-28
0.2.1 2016-Sep-26
0.2.0 2016-Jul-27
Show all 7 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 100 downloads total

Score:
0.0
Short URL:
trashcan.dub.pm