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:
parent
e47393031b
commit
82e274875d
1 changed files with 1 additions and 0 deletions
|
@ -148,6 +148,7 @@ func ZipFile(fname string, compress bool) (writtenFilename string, err error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if baseDir != "" {
|
if baseDir != "" {
|
||||||
|
baseDir = filepath.Clean(baseDir)
|
||||||
header.Name = path.Join(fname, strings.TrimPrefix(curpath, baseDir))
|
header.Name = path.Join(fname, strings.TrimPrefix(curpath, baseDir))
|
||||||
}
|
}
|
||||||
log.Debug(header.Name)
|
log.Debug(header.Name)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue