Create output directory if it doesn't exist.

This commit is contained in:
Krzysztof Kotowicz
2024-12-21 10:20:02 +01:00
parent 3bdbfd12bf
commit 3c67c0c693

View File

@@ -700,6 +700,8 @@ local function generate_ultrahdr(encoding_variant, images, settings, step, total
if not settings.overwrite_on_conflict then
output_file = df.create_unique_filename(output_file)
end
local output_path = ds.get_path(output_file)
df.mkdir(output_path)
ok = df.file_move(uhdr, output_file)
if not ok then
table.insert(errors, string.format(_("Error generating UltraHDR for %s"), best_source_image.filename))