Crate trash[][src]

Expand description

This crate provides functions that allow moving files to the operating system’s Recycle Bin or Trash, or the equivalent.

Furthermore on Linux and on Windows additional functions are available from the os_limited module.

Notes on the Linux implementation

This library implements version 1.0 of the Freedesktop.org Trash specification and aims to match the behaviour of Ubuntu 18.04 GNOME in cases of ambiguity. Most -if not all- Linux distributions that ship with a desktop environment follow this specification. For example GNOME, KDE, and XFCE all use this convention. This crate blindly assumes that the Linux distribution it runs on, follows this specification.

Modules

This module provides functionality which is only supported on Windows and Linux or other Freedesktop Trash compliant environment.

Structs

A collection of preferences for trash operations.

This struct holds information about a single item within the trash.

Enums

Provides information about an error.

Constants

Functions

Convenience method for DEFAULT_TRASH_CTX.delete().

Convenience method for DEFAULT_TRASH_CTX.delete_all().