fix: folder creation errors

This commit is contained in:
Aliberk Sandıkçı 2023-10-26 19:40:23 +03:00
parent 599133ab25
commit 9bb8712ffc
Signed by: asandikci
GPG key ID: 25C67A03B5666BC1

View file

@ -45,9 +45,9 @@ func main() {
fileFormat = "jpg"
}
name = "/output/" + name
name = "output/" + name
if err := os.Mkdir(name, os.ModePerm); err != nil {
if err := os.MkdirAll(name, os.ModePerm); err != nil {
log.Fatal(err)
}