xdg-trashdir
Get the correct trash path on Linux according to the spec
Install
$ npm install xdg-trashdir
Usage
const xdgTrashdir = ; async { console; //=> '/home/johndoe/.local/share/Trash' console; //=> '/media/johndoe/UUI/.Trash-1000' console; //=> ['/home/johndoe/.local/share/Trash', '/media/johndoe/UUI/.Trash-1000', …]};
API
xdgTrashdir(file?)
Returns a Promise<string>
with the path to the trash.
file
Type: string
Get the trash path for a specific file.
xdgTrashdir.all()
Returns a Promise<string[]>
with all possible trash paths.