Created
June 26, 2025 02:55
-
-
Save sneakers-the-rat/283d93b90fb3f75bb6e2b3b43db57564 to your computer and use it in GitHub Desktop.
file_sizes.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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