Fred808 commited on
Commit
3f2638c
·
verified ·
1 Parent(s): 8b77beb

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import shutil
2
+
3
+ def get_disk_space():
4
+ total, used, free = shutil.disk_usage("/")
5
+ print(f"Total: {total / (1024**3):.2f} GB")
6
+ print(f"Used: {used / (1024**3):.2f} GB")
7
+ print(f"Free: {free / (1024**3):.2f} GB")
8
+
9
+ if __name__ == "__main__":
10
+ get_disk_space()