I have this code fragment:-
def diskusage(path: str) -> str:
total, used, free = shutil.disk_usage(path)
but used is Zero and Total = Free
On Ubuntu Groovy, with Python 3.9.4, and psutils 5.8.0
I'm probably doing something wrong.
Can you help?
Like this:-