kovacsvi commited on
Commit
04d7b9c
·
1 Parent(s): a3a4d97

show disk usage for /data as well (du)

Browse files
Files changed (1) hide show
  1. utils.py +7 -2
utils.py CHANGED
@@ -106,8 +106,13 @@ def download_hf_models():
106
  print(f"✔️ Saved JIT model to: {traced_model_path}")
107
 
108
  def df_h():
109
- result = subprocess.run(["df", "-H"], capture_output=True, text=True)
110
- print(result.stdout)
 
 
 
 
 
111
 
112
  def scan_cache():
113
  # Scan Hugging Face model cache
 
106
  print(f"✔️ Saved JIT model to: {traced_model_path}")
107
 
108
  def df_h():
109
+ df_result = subprocess.run(["df", "-H"], capture_output=True, text=True)
110
+ print("=== Disk Free Space (df -H) ===")
111
+ print(df_result.stdout)
112
+
113
+ du_result = subprocess.run(["du", "-h", "--max-depth=2", "/data/"], capture_output=True, text=True)
114
+ print("=== Disk Usage for /data/ (du -h --max-depth=2) ===")
115
+ print(du_result.stdout)
116
 
117
  def scan_cache():
118
  # Scan Hugging Face model cache