Skip to content

Commit 8af015e

Browse files
committed
RL_out_sharp: create the output directory as needed before moving the final file
1 parent 24d17db commit 8af015e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contrib/RL_out_sharp.lua

+1
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ local function store(storage, image, img_format, temp_name, img_num, total, hq,
314314

315315
-- move the tmp file to final destination
316316
new_name = df.create_unique_filename(new_name)
317+
df.mkdir(df.sanitize_filename(df.get_path(new_name)))
317318
df.file_move(tmp_rl_name, new_name)
318319

319320
-- delete temp image

0 commit comments

Comments
 (0)