I\'m looking for the number of free bytes on my HD, but have trouble doing so on python.
I\'ve tried the following:
import os stat = os.statvfs(path
In python 3.3 and above shutil provides you the same feature
>>> import shutil >>> shutil.disk_usage("/") usage(total=488008343552, used=202575314944, free=260620050432) >>>