Skip to content

Instantly share code, notes, and snippets.

@sneakers-the-rat
Created June 26, 2025 02:55
Show Gist options
  • Save sneakers-the-rat/283d93b90fb3f75bb6e2b3b43db57564 to your computer and use it in GitHub Desktop.
Save sneakers-the-rat/283d93b90fb3f75bb6e2b3b43db57564 to your computer and use it in GitHub Desktop.
file_sizes.py
from pathlib import Path
import json
# change this to the actual directory of dlc_beaker_ver01
beaker_dir = Path("dlc_beaker_ver01")
sizes = {str(path.relative_to(beaker_dir)): path.stat().st_size for path in beaker_dir.rglob("*")}
with open('beaker_sizes.json', 'w') as f:
json.dump(sizes, f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment