Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DirHomeTrash string
)
Functions ¶
Types ¶
type DirCache ¶
type DirCache map[string]*struct { Item DirCacheItem Seen bool }
type DirCacheItem ¶
func (DirCacheItem) String ¶
func (i DirCacheItem) String() string
type Info ¶
type Info struct { Path string // $PWD/file.go (url decoded) DeletionDate time.Time // 2023-01-01T00:00:00 }
type TrashDir ¶
type TrashDir struct { Root string // $XDG_DATA_HOME or $rootDir (used for relative path) Dir string // $XDG_DATA_HOME/Trash or $rootDir/.Trash/$uid or $rootDir/.Trash-$uid (has info and files directory) // contains filtered or unexported fields }
func NewTrashDirManual ¶ added in v0.0.3
func ScanTrashDirs ¶
func ScanTrashDirs() []TrashDir
Scan and returns trash directories from all mountpoints The existence of the 'files' and 'info' directories is not checked
func (TrashDir) UseRelativePath ¶
Use relative paths for external trash
Click to show internal directories.
Click to hide internal directories.