0
0
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02:00

fix zipping on windows

This commit is contained in:
Zack Scholl 2018-10-18 06:34:48 -07:00
parent e47393031b
commit 82e274875d

View file

@ -148,6 +148,7 @@ func ZipFile(fname string, compress bool) (writtenFilename string, err error) {
}
if baseDir != "" {
baseDir = filepath.Clean(baseDir)
header.Name = path.Join(fname, strings.TrimPrefix(curpath, baseDir))
}
log.Debug(header.Name)