Skip to content

Commit

Permalink
feat: add filepath.Clean
Browse files Browse the repository at this point in the history
  • Loading branch information
orisano committed Dec 18, 2020
1 parent 933e862 commit 7110e37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"log"
"os"
"os/exec"
"path/filepath"
"sort"
"strings"

Expand Down Expand Up @@ -269,7 +270,7 @@ func readFiles(r io.Reader) ([]*FileInfo, error) {
continue
}
files = append(files, &FileInfo{
Name: hdr.Name,
Name: filepath.Clean(hdr.Name),
Size: fi.Size(),
Details: &FileDetails{
FileMode: fi.Mode().Perm(),
Expand Down

0 comments on commit 7110e37

Please sign in to comment.