[#2548] use fileath.Clean on the fs.WalkDirFunc argument to ensure that the same normalizations are applied
This commit is contained in:
parent
db20e38cda
commit
ce28a9af78
|
@ -51,7 +51,7 @@ func zipAddFS(w *zip.Writer, fsys fs.FS, skipPaths ...string) error {
|
||||||
// skip
|
// skip
|
||||||
for _, ignore := range skipPaths {
|
for _, ignore := range skipPaths {
|
||||||
if ignore == name ||
|
if ignore == name ||
|
||||||
strings.HasPrefix(name+string(os.PathSeparator), filepath.Clean(ignore)+string(os.PathSeparator)) {
|
strings.HasPrefix(filepath.Clean(name)+string(os.PathSeparator), filepath.Clean(ignore)+string(os.PathSeparator)) {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue