Skip to content

Commit

Permalink
Merge pull request #15 from Neves-P/feature/disk_cleanup
Browse files Browse the repository at this point in the history
Use rmtree
  • Loading branch information
Neves-Bot authored Jul 3, 2024
2 parents c4dc9b5 + f0e0255 commit 1c08013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/clean_up.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def move_to_trash_bin(trash_bin_dir, job_dirs):
for pr_dir in pr_dirs:
destination_dir = shutil.copytree(pr_dir, trash_bin_dir)
log(f"{funcname}(): copied {pr_dir} to {destination_dir}")
os.remove(pr_dir)
shutil.rmtree(pr_dir) # Use shutil.rmtree to remove directories recursively
log(f"{funcname}(): removed {pr_dir}")

return True

0 comments on commit 1c08013

Please sign in to comment.