We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3f61aae + a93231c commit a9a0c2dCopy full SHA for a9a0c2d
estargz/estargz.go
@@ -36,7 +36,6 @@ import (
36
"io/ioutil"
37
"os"
38
"path"
39
- "path/filepath"
40
"sort"
41
"strconv"
42
"strings"
@@ -820,7 +819,8 @@ func formatModtime(t time.Time) string {
820
819
}
821
822
func cleanEntryName(name string) string {
823
- return strings.TrimPrefix(filepath.Clean("/"+name), "/")
+ // Use path.Clean to consistently deal with path separators across platforms.
+ return strings.TrimPrefix(path.Clean("/"+name), "/")
824
825
826
// countWriter counts how many bytes have been written to its wrapped
0 commit comments