소스 검색

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

master
rewby 9 달 전
부모
커밋
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}")



불러오는 중...
취소
저장