trashcan 0.1.0

Move files to trash can programmatically


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:


This package provides sub packages which can be used individually:

trashcan:put - A minimal D application.

Trash can

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.
  • Better compatibility with specification on freedesktop.

Examples

Put to trash can

Run to put file or directory to trash can:

dub run :put -- path/to/file
Authors:
  • Roman Chistokhodov
Sub packages:
trashcan:put
Dependencies:
xdgpaths
Versions:
0.3.2 2022-Jun-10
0.3.1 2022-May-21
0.3.0 2020-Sep-23
0.2.4 2018-May-05
0.2.3 2018-Feb-13
Show all 10 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 3 downloads this month

  • 285 downloads total

Score:
0.4
Short URL:
trashcan.dub.pm