From 5b819d16f52e6efd765e4225025f447fa2ba7bbe Mon Sep 17 00:00:00 2001 From: Trenton Holmes <797416+stumpylog@users.noreply.github.com> Date: Fri, 5 Jan 2024 19:43:53 -0800 Subject: [PATCH] Unnessecary rmtree --- src/documents/consumer.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/documents/consumer.py b/src/documents/consumer.py index 58a322299..b7a559575 100644 --- a/src/documents/consumer.py +++ b/src/documents/consumer.py @@ -1,7 +1,6 @@ import datetime import hashlib import os -import shutil import tempfile import uuid from enum import Enum @@ -563,7 +562,6 @@ class Consumer(LoggingMixin): self.log.debug(f"Deleting file {self.working_copy}") self.original_path.unlink() self.working_copy.unlink() - shutil.rmtree(self.working_copy.parent) # https://github.com/jonaswinkler/paperless-ng/discussions/1037 shadow_file = os.path.join(