4.2.1. DummyTrash

Name:DummyTrash
Module:dummytrash
Author:Chris Warrick <chris@chriswarrick.com>
Specification:n/a
OS:any
Description:A dummy backend, printing all the requests it gets.
Copyright:© 2011-2018, Chris Warrick.
License:BSD (see /LICENSE or Appendix B.)
Date:2015-02-28
Version:1.5.0

4.2.1.1. trashman.backends.dummytrash

A dummy backend, printing all the requests it gets.

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

A dummy trash, printing and logging actions that would be performed.

empty(verbose)[source]

Empty the trash.

list(human=True)[source]

List the trash contents.

log(msg, lvl='debug')[source]

Log a message.

regenerate()[source]

Regenerate the trash and recreate metadata.

restore(filename, verbose)[source]

Restore a file from trash.

trash(filepath, verbose)[source]

Move specified file to trash.