Fixed stat

This commit is contained in:
Alex 2021-10-24 12:35:02 +03:00 committed by GitHub
parent 476aec70b4
commit 64dd07d1c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -1735,9 +1735,13 @@ class Linux(Platform):
# 14 total size in bytes # 14 total size in bytes
for i in range(len(fields)): for i in range(len(fields)):
if not fields[i].isdigit(): if fields[i] == "?":
fields[i] = "0" fields[i] = "0"
# Fix stat output issues in some enviroments
if fields[1] == "W":
fields[1] = "0"
stat = os.stat_result( stat = os.stat_result(
tuple( tuple(
[ [