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
1 changed files with 2 additions and 2 deletions

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)
}