mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-29 02:12:36 +02:00
Use shutil.move instead of os.rename in case files are on different disks
This commit is contained in:
parent
b4cae37874
commit
a81b2043cf
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ def convert(input_filename, output_filename, ocr_lang, stdout_callback):
|
||||||
container_output_filename = os.path.join(
|
container_output_filename = os.path.join(
|
||||||
safe_dir, "safe-output-compressed.pdf"
|
safe_dir, "safe-output-compressed.pdf"
|
||||||
)
|
)
|
||||||
os.rename(container_output_filename, output_filename)
|
shutil.move(container_output_filename, output_filename)
|
||||||
|
|
||||||
# We did it
|
# We did it
|
||||||
success = True
|
success = True
|
||||||
|
|
Loading…
Reference in a new issue