Fix: fix auto-clean PDFs, create parent dir for storing unmodified original (#8157)

This commit is contained in:
shamoon 2024-11-02 20:54:28 -07:00 committed by GitHub
parent 5fed311ffc
commit 37dc791301
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -411,6 +411,7 @@ class ConsumerPlugin(
self.unmodified_original = (
Path(tempdir.name) / Path("uo") / Path(self.filename)
)
self.unmodified_original.parent.mkdir(exist_ok=True)
copy_file_with_basic_stats(
self.input_doc.original_file,
self.unmodified_original,