Created
May 5, 2019 17:15
-
-
Save mirekfranc/76e03a484a203364d16f0d16ff1e6f1d to your computer and use it in GitHub Desktop.
Dist usage from python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import shutil | |
total, used, free = shutil.disk_usage('.') | |
print(total, used, free / (1024 * 1024 * 1024)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment