This commit is contained in:
2026-08-24 08:11:59 -07:00
commit 53df0eed10
275 changed files with 133056 additions and 0 deletions
@@ -0,0 +1,15 @@
from pathlib import Path, PurePosixPath
def normalized_asset_path(name):
parts = [part for part in PurePosixPath(name).parts if part not in {"", ".", ".."}]
return Path("assets").joinpath(*parts)
def extract_entries(entries, destination):
destination = Path(destination)
destination.mkdir(parents=True, exist_ok=True)
for name, content in entries:
target = destination / name
target.parent.mkdir(parents=True, exist_ok=True)
target.write_bytes(content)