trash

package
v0.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ThrowToTrash

func ThrowToTrash(filePath string) error

ThrowToTrash moves the file to system Trash bin, using the gio tool (https://docs.gtk.org/gio/). Using os.Rename in go will get 'permission denied' error in sandbox environment of Flatpak. To make it work across host OS and sandbox env, it's better to use gio here.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL