mirror of
https://github.com/ocrmypdf/OCRmyPDF.git
synced 2026-05-04 12:48:02 -04:00
Change "Temporary working files" output message
This commit is contained in:
@@ -226,7 +226,7 @@ If the ``-k`` argument is issued on the command line, OCRmyPDF will keep the tem
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
Temporary working files saved at:
|
||||
Temporary working files retained at:
|
||||
/tmp/com.github.ocrmypdf.u20wpz07
|
||||
|
||||
The organization of this folder is an implementation detail and subject to change between releases. However the general organization is that working files on a per page basis have the page number as a prefix (starting with page 1), an infix indicates the processing stage, and a suffix indicates the file type. Some important files include:
|
||||
|
||||
@@ -93,7 +93,7 @@ class PageContext(PicklableLoggerMixin):
|
||||
|
||||
def cleanup_working_files(work_folder, options):
|
||||
if options.keep_temporary_files:
|
||||
print(f"Temporary working files saved at:\n{work_folder}", file=sys.stderr)
|
||||
print(f"Temporary working files retained at:\n{work_folder}", file=sys.stderr)
|
||||
else:
|
||||
shutil.rmtree(work_folder, ignore_errors=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user