Expand description
Bounded, link-free staging for Architect folder and archive imports.
Structsยง
- Source
Writer ๐ - Tracks expansion limits and duplicate paths across one upload.
- Uploaded
Source ๐ - Owns disposable staging separately from the selected source app root.
Constantsยง
- MAX_
EXPANDED_ ๐BYTES - MAX_
FILES ๐ - MAX_
UPLOAD_ ๐BYTES
Functionsยง
- extract_
tar ๐ - Reads TAR entries with a bound on the entire decompressed stream, including metadata.
- extract_
zip ๐ - Extracts ZIP entries through the bounded source writer rather than unpacking paths.
- find_
app_ ๐root - Requires one app at the upload root or inside a single enclosing folder.
- safe_
relative_ ๐path - Rejects absolute, parent, Windows-prefixed, and control-character paths.
- stage_
upload ๐ - Stages exactly one folder or supported archive and owns cleanup until import completes.