Skip to content

Commit

Permalink
Fix remove done job
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jul 15, 2023
1 parent c0fbefd commit 18ae7d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scan_to_paperless/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -1842,6 +1842,8 @@ def main() -> None:
save_config(config, config_file_name)

elif job_type == scan_to_paperless.status.JobType.DOWN:
assert name is not None
root_folder = os.path.join(os.environ.get("SCAN_SOURCE_FOLDER", "/source"), name)
shutil.rmtree(root_folder)
elif job_type == scan_to_paperless.status.JobType.CODE:
assert name is not None
Expand Down

0 comments on commit 18ae7d7

Please # to comment.