Answers for "python check disk space"

0

python check disk space

$ cat free_space.py 
#!/usr/bin/env python3

import shutil

total, used, free = shutil.disk_usage(__file__)
print(total, used, free)

$ ./free_space.py 
1007870246912 460794834944 495854989312
Posted by: Guest on August-22-2021

Code answers related to "python check disk space"

Python Answers by Framework

Browse Popular Code Answers by Language