mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 09:22:31 -06:00
Update util.py
Signed-off-by: Jo <141064017+Arklaum@users.noreply.github.com>
This commit is contained in:
parent
fbf17be203
commit
f47a985c98
|
@ -2679,7 +2679,7 @@ def get_df(abspath: str, prune: bool) -> tuple[Optional[int], Optional[int], str
|
||||||
return (bfree.value, None, "")
|
return (bfree.value, None, "")
|
||||||
else:
|
else:
|
||||||
sv = os.statvfs(ap)
|
sv = os.statvfs(ap)
|
||||||
free = sv.f_frsize * sv.f_bfree
|
free = sv.f_frsize * sv.f_bavail
|
||||||
total = sv.f_frsize * sv.f_blocks
|
total = sv.f_frsize * sv.f_blocks
|
||||||
return (free, total, "")
|
return (free, total, "")
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
|
|
Loading…
Reference in a new issue