aboutsummaryrefslogtreecommitdiffstats
path: root/trash.go
diff options
context:
space:
mode:
Diffstat (limited to 'trash.go')
-rw-r--r--trash.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/trash.go b/trash.go
index 37a48ab..f6e51b4 100644
--- a/trash.go
+++ b/trash.go
@@ -92,7 +92,7 @@ func writeTrashInfo(fileName, trash, now string) (_ string, err error) {
}()
escapedPath := strings.Split(absPath, string(filepath.Separator))
for i, pathSegment := range escapedPath {
- escapedPath[i] = url.QueryEscape(pathSegment)
+ escapedPath[i] = url.PathEscape(pathSegment)
}
_, err = fmt.Fprintf(info, `[Trash Info]
Path=%s