mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-21 18:35:23 -04:00
show mount paths with at symbol in version output
This commit is contained in:
parent
319ea481b8
commit
d586a8babc
1 changed files with 5 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue