From d586a8babc396aac5d3aa1ed9afdc24d71921343 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Wed, 8 Jun 2022 20:22:58 -0700 Subject: [PATCH] show mount paths with at symbol in version output --- archivebox/logging_util.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/archivebox/logging_util.py b/archivebox/logging_util.py index e00d4cbb..49ee12d7 100644 --- a/archivebox/logging_util.py +++ b/archivebox/logging_util.py @@ -572,7 +572,7 @@ def printable_config(config: ConfigDict, prefix: str='') -> str: def printable_folder_status(name: str, folder: Dict) -> str: if folder['enabled']: if folder['is_valid']: - color, symbol, note = 'green', '√', 'valid' + color, symbol, note, num_files = 'green', '√', 'valid', '' else: color, symbol, note, num_files = 'red', 'X', 'invalid', '?' else: @@ -587,6 +587,10 @@ def printable_folder_status(name: str, folder: Dict) -> str: ) else: num_files = 'missing' + + if folder.get('is_mount'): + # add symbol @ next to filecount if path is a remote filesystem mount + num_files = f'{num_files} @' if num_files else '@' path = str(folder['path']).replace(str(OUTPUT_DIR), '.') if folder['path'] else '' if path and ' ' in path: