4.2.2. XDGTrash

Name:XDGTrash
Module:xdgtrash
Author:Chris Warrick <chris@chriswarrick.com>
Specification:XDG/freedesktop <http://freedesktop.org/wiki/Specifications/trash-spec>
OS:Linux (KDE, GNOME, Xfce and others conforming to this spec)
Description:An XDG trash implementation.
Copyright:© 2011-2018, Chris Warrick.
License:BSD (see /LICENSE or Appendix B.)
Date:2015-02-28
Version:1.5.0

4.2.2.1. trashman.backends.xdgtrash

An XDG trash implementation.

Copyright:© 2011-2018, Chris Warrick.
License:BSD (see /LICENSE).
class trashman.backends.xdgtrash.XDGTrash[source]

XDG trash backend.

empty(verbose)[source]

Empty the trash.

list(human=True)[source]

List the trash contents.

regenerate()[source]

Regenerate the trash and recreate metadata.

restore(filename, verbose, tocwd=False)[source]

Restore a file from trash.

trash(filepath, verbose)[source]

Move specified file to trash.