Fix copying of static files nested in directories

This commit is contained in:
adnano 2021-04-20 17:50:20 -04:00
parent efbd6cba45
commit 91d9dc09fa

View file

@ -127,6 +127,7 @@ func copyAll(srcDir, dstDir string) error {
defer src.Close() defer src.Close()
dstPath := filepath.Join(dstDir, strings.TrimPrefix(path, srcDir)) dstPath := filepath.Join(dstDir, strings.TrimPrefix(path, srcDir))
os.MkdirAll(filepath.Dir(dstPath), 0755)
dst, err := os.Create(dstPath) dst, err := os.Create(dstPath)
if err != nil { if err != nil {
return err return err