Buckets:

redmingwei's picture
download
raw
818 Bytes
import os, json
from pathlib import Path
out = {}
for p in ["/domains", "/training", "/ds"]:
pp = Path(p)
out[p] = {"exists": pp.exists()}
if pp.exists():
try:
items = sorted(os.listdir(p))
out[p]["items"] = items[:10]
except Exception as e:
out[p]["err"] = str(e)[:80]
# 验证 /ds 里的数据
ds = Path("/ds")
if ds.exists():
for sub in ["test", "train"]:
d = ds / sub
if d.exists():
fs = sorted(d.glob("*.npz"))
tot = sum(f.stat().st_size for f in fs) / 1024**3
out[f"/ds/{sub}"] = {"n_npz": len(fs), "gb": round(tot, 2),
"sample": [f.name for f in fs[:3]]}
out["readme"] = (ds / "README.md").exists()
print(json.dumps(out, indent=2, ensure_ascii=False))

Xet Storage Details

Size:
818 Bytes
·
Xet hash:
8eef2dc15f5fb8e5ea6607972df0e6f9ff26c70f70a5409aafefb2261f23b343

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.