fix: folder creation errors
This commit is contained in:
parent
599133ab25
commit
9bb8712ffc
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue