Fixed stat
This commit is contained in:
parent
476aec70b4
commit
64dd07d1c0
|
@ -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(
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in New Issue