Skip to content

Commit 3c67c0c

Browse files
committed
Create output directory if it doesn't exist.
1 parent 3bdbfd1 commit 3c67c0c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

contrib/ultrahdr.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,8 @@ local function generate_ultrahdr(encoding_variant, images, settings, step, total
700700
if not settings.overwrite_on_conflict then
701701
output_file = df.create_unique_filename(output_file)
702702
end
703+
local output_path = ds.get_path(output_file)
704+
df.mkdir(output_path)
703705
ok = df.file_move(uhdr, output_file)
704706
if not ok then
705707
table.insert(errors, string.format(_("Error generating UltraHDR for %s"), best_source_image.filename))

0 commit comments

Comments
 (0)