trash

package module
v0.0.0-...-725f511 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: MIT Imports: 2 Imported by: 4

README

go-trash - crossplatform package to move files to trash

go-trash is a cross-platform package to move files to trash. OSX, Windows and Linux (tested on Ubuntu) are supported.

Installing

go get https://github.com/laurent22/go-trash

Building

  • On Windows, it builds successfully with MinGW, in MSYS shell.

  • On OSX and Linux, it should build as is.

Documentation

http://godoc.org/github.com/laurent22/go-trash

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAvailable

func IsAvailable() bool

Tells whether it is possible to move a file to the trash

func MoveToTrash

func MoveToTrash(filePath string) (string, error)

Move the given file to the trash filePath must be an absolute path

Types

This section is empty.

Jump to

Keyboard shortcuts

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