fix: use MkdirAll instead Mkdir to ignore existing dirs

This commit is contained in:
Maxim Slipenko 2024-11-17 21:11:54 +03:00
parent 1273aeae39
commit 41eec2fc98

@ -222,7 +222,7 @@ func extractFile(r io.Reader, format archiver.Format, name string, opts Options)
} }
if f.IsDir() { if f.IsDir() {
err = os.Mkdir(path, 0o755) err = os.MkdirAll(path, 0o755)
if err != nil { if err != nil {
return err return err
} }