mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-29 22:15:21 -04:00
try creating shared libs as 777 when running as root
This commit is contained in:
parent
35c7019772
commit
1888691ee8
5 changed files with 26 additions and 11 deletions
archivebox
|
@ -573,11 +573,14 @@ def printable_folder_status(name: str, folder: Dict) -> str:
|
|||
|
||||
if folder['path']:
|
||||
if os.access(folder['path'], os.R_OK):
|
||||
num_files = (
|
||||
f'{len(os.listdir(folder["path"]))} files'
|
||||
if Path(folder['path']).is_dir() else
|
||||
printable_filesize(Path(folder['path']).stat().st_size)
|
||||
)
|
||||
try:
|
||||
num_files = (
|
||||
f'{len(os.listdir(folder["path"]))} files'
|
||||
if os.path.isdir(folder['path']) else
|
||||
printable_filesize(Path(folder['path']).stat().st_size)
|
||||
)
|
||||
except PermissionError:
|
||||
num_files = 'error'
|
||||
else:
|
||||
num_files = 'missing'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue