瀏覽代碼

Fix potential issue if meta json is created and the item is put back in the queue.

master
rewby 8 月之前
父節點
當前提交
262499f033
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      main.py

+ 3
- 0
main.py 查看文件

@@ -48,6 +48,9 @@ def watch_pass(input_directory: pathlib.Path, work_directory: pathlib.Path, ia_c
logging.warning("Stopped upload but files remain, moving back to queue...")
try:
new_directory.rename(original_directory)
mj = original_directory.joinpath("__upload_meta.json")
if mj.exists():
os.remove(mj)
except FileNotFoundError:
logging.warning(f"Unable to move item {new_directory}")



Loading…
取消
儲存