Исправление file exists при распаковке архива #2

Merged
xpamych merged 1 commits from Maks1mS/ALR:fix/unpack-file-exists-error into master 2024-11-17 18:25:29 +00:00
Showing only changes of commit 41eec2fc98 - Show all commits

@ -222,7 +222,7 @@ func extractFile(r io.Reader, format archiver.Format, name string, opts Options)
}
if f.IsDir() {
err = os.Mkdir(path, 0o755)
err = os.MkdirAll(path, 0o755)
if err != nil {
return err
}
@ -279,4 +279,4 @@ func getFilename(res *http.Response) (name string) {
} else {
return path.Base(res.Request.URL.Path)
}
}
}