From 10eb2d2bbac61a5e816f8e2ad42ae3ead0e0bb05 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Thu, 23 Feb 2023 16:27:19 -0800 Subject: [PATCH] output into a path instead of the same directory --- scanner_workflow.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/scanner_workflow.py b/scanner_workflow.py index be2b9db..e803f9e 100755 --- a/scanner_workflow.py +++ b/scanner_workflow.py @@ -84,21 +84,33 @@ class ScannerWorkflow: ) return name + def pdf_file_path(self, name: str): + res = re.match( + r"(?P[^_]+)_(?P\d{2})(?P\d{2})(?P\d{4})_" + r"(?P