Fix copying of static files nested in directories

This commit is contained in:
Adnan Maolood 2021-04-20 17:50:20 -04:00
parent 4639df3dc2
commit 99f11c2876

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