Skip to content

Instantly share code, notes, and snippets.

@mirekfranc mirekfranc/

Created May 5, 2019
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.