Skip to content

Commit

Permalink
Update init.go
Browse files Browse the repository at this point in the history
  • Loading branch information
TimLai666 committed Oct 17, 2024
1 parent 87ebecf commit 9ad2655
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lp/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,10 @@ func unzip(src string, dest string) error {
for _, f := range r.File {
fpath := filepath.Join(dest, f.Name)
if f.FileInfo().IsDir() {
os.MkdirAll(fpath, os.ModePerm)
err := os.MkdirAll(fpath, os.ModePerm)
if err != nil {
return err
}
} else {
if err := os.MkdirAll(filepath.Dir(fpath), os.ModePerm); err != nil {
return err
Expand Down

0 comments on commit 9ad2655

Please sign in to comment.