diff --git a/main.go b/main.go index 91a1a6c..21c0fab 100644 --- a/main.go +++ b/main.go @@ -127,6 +127,7 @@ func copyAll(srcDir, dstDir string) error { defer src.Close() dstPath := filepath.Join(dstDir, strings.TrimPrefix(path, srcDir)) + os.MkdirAll(filepath.Dir(dstPath), 0755) dst, err := os.Create(dstPath) if err != nil { return err