Skip to content

Commit

Permalink
Fix error when there already is an DZI directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Dadido3 committed Dec 23, 2023
1 parent f0ee3e2 commit b76124b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/stitch/dzi.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (d DZI) ExportDZITiles(outputDir string) error {
for zoomLevel := d.maxZoomLevel; zoomLevel >= 0; zoomLevel-- {

levelBasePath := filepath.Join(outputDir, fmt.Sprintf("%d", zoomLevel))
if err := os.Mkdir(levelBasePath, 0755); err != nil {
if err := os.MkdirAll(levelBasePath, 0755); err != nil {
return fmt.Errorf("failed to create zoom level base directory %q: %w", levelBasePath, err)
}

Expand Down

0 comments on commit b76124b

Please sign in to comment.