Documentation
¶
Overview ¶
Package trash provides easy access to the trash bin. For more information, see the trash spec: https://standards.freedesktop.org/trash-spec/trashspec-latest.html
TODO: Make New work.
Index ¶
- func Empty() error
- func Erase(s string) error
- func EraseAll(s string) error
- func Files() ([]string, error)
- func IsEmpty() bool
- func Restore(s string) error
- func RestoreTo(s, p string) error
- func Trash(p string) error
- type Dir
- func (d *Dir) Empty() error
- func (d *Dir) Erase(s string) error
- func (d *Dir) EraseAll(s string) error
- func (d *Dir) Files() ([]string, error)
- func (d *Dir) IsEmpty() bool
- func (d *Dir) Restore(s string) error
- func (d *Dir) RestoreTo(s, p string) error
- func (d *Dir) Stat(s string) (*Info, error)
- func (d *Dir) Trash(p string) error
- type Info
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dir ¶
type Dir struct {
// contains filtered or unexported fields
}
Dir represents a trash directory.
Click to show internal directories.
Click to hide internal directories.