From aba293fd802e4e7e3c0c89fbbe90ddcd9932ec6f Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Wed, 12 Jun 2019 13:56:02 -0700 Subject: [PATCH] Change "Temporary working files" output message --- docs/advanced.rst | 2 +- src/ocrmypdf/_jobcontext.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/advanced.rst b/docs/advanced.rst index da1f1675..518b5bf1 100644 --- a/docs/advanced.rst +++ b/docs/advanced.rst @@ -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: diff --git a/src/ocrmypdf/_jobcontext.py b/src/ocrmypdf/_jobcontext.py index 2a141e7f..96ad6c7e 100644 --- a/src/ocrmypdf/_jobcontext.py +++ b/src/ocrmypdf/_jobcontext.py @@ -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)