fork/gdu

git clone https://git.julia.blue/fork/gdu

Daniel Mildefeat: add --trash-command option (#652)b279b41

master
368 B17 linesraw
1//go:build windows
2
3package remove
4
5import (
6	"fmt"
7
8	"github.com/dundee/gdu/v5/pkg/fs"
9)
10
11// TrashCommand is not supported on Windows, which has no POSIX shell to
12// evaluate the command in.
13func TrashCommand(command string) func(dir, item fs.Item) error {
14	return func(dir, item fs.Item) error {
15		return fmt.Errorf("trash command is not supported on Windows")
16	}
17}