Skip to content

Instantly share code, notes, and snippets.

@mirekfranc mirekfranc/cool.py

Created May 5, 2019
Embed
What would you like to do?
Dist usage from python
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
You can’t perform that action at this time.