Skip to main content

Module transfer

Module transfer 

Source
Expand description

A container as one file: the .bwx.zip a document travels in.

A .bwx is a directory, which a host that has one hands over as it stands. A browser has none to hand over, so a container leaves the origin β€” and comes back into it β€” packed, and this is the one place that packing is written. Over a Storage, so the two ends are the same bytes whether a desktop or a tab wrote them.

The lock does not travel: it says who is writing a container here, and a copy someone else is opening is not that container. Everything else in the layout does, which is what makes an unpacked archive a container the ordinary open verifies rather than a shape that only looks like one.

ConstantsΒ§

WITHIN πŸ”’
The directories a container files entries in, which is the whole of its nesting: pack walks these and nothing deeper.

FunctionsΒ§

document_in
The document an archive holds.
entries πŸ”’
What a container holds, in the order it was laid out: the files beside the manifest, then what each directory of it holds.
is_a_name πŸ”’
named πŸ”’
The entry name spells, or None for a name no container ever wrote: one that climbs out of the container, or sits under a directory the layout does not have.
pack
Everything in storage as a zip, entry names being the container’s own.
refused πŸ”’
unpack
Lay the container archive holds down in storage.