Update medias handling system
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
|||||||
"io/fs"
|
"io/fs"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
"path"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
@@ -33,6 +34,12 @@ func copyMedias() error {
|
|||||||
log.Println("Copyied media from", s, "to", newPath)
|
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
|
||||||
})
|
})
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user