Update medias handling system

This commit is contained in:
Evrard Van Espen
2025-11-14 13:59:36 +00:00
parent 7b851dfb0b
commit 1ba79a05df

View File

@@ -5,6 +5,7 @@ import (
"io/fs"
"log"
"os"
"path"
"path/filepath"
"strings"
)
@@ -33,6 +34,12 @@ func copyMedias() error {
log.Println("Copyied media from", s, "to", newPath)
}
}
if d.IsDir() {
log.Println("Skipping directory:", s)
copyDir(d.Name(), path.Join("/build/medias", d.Name()))
return nil
}
return nil
})
return nil