Expand description
What a path names, and the container doors that take one. The one module here that is still native by nature: a browser has no filesystem to point at, and reaches its containers by name instead. What a path names: whether it is a diagram, and where one is saved or renamed to. A diagram is a container, which is a directory.
Native only — the browser has no filesystem to open a container from.
Everything here is a plain function over paths, so the flow is testable without a dialog; the pickers that deliver a path live in the shell.
Enums§
- Archive
Failure - Why an archive did not open.
Functions§
- as_
container_ path - A picked save location as a container path. The suffix is the format’s
name, so a path without one gets it — appended rather than substituted,
since a document called
notes.v2should not becomenotes.bwx. - container_
name - What the chrome calls an open container: the directory’s own name.
- create_
container - Lay out a container at
rootholdingcommits— how a scratch session becomes durable, since a scratch session has no manifest to copy. - names_
a_ container - Whether
pathnames a container rather than a plain file. The extension is the fast answer; the manifest inside is the true one, so a container someone renamed is still opened as one. - names_
an_ archive - Whether
pathnames a packed container, the.bwx.zipa container travels as. - open_
archive - Lay the archive at
archivedown as the container it carries, beside it, and open that —engine.bwx.zipbecomesengine.bwxin the same folder. A container the store cannot open is not one that arrived, so the half-laid directory is removed rather than left standing. - open_
container - Open the container at
root. - refused_
as_ a_ diagram - Why a picked folder is not a diagram, or
Nonewhere it is one. - renamed_
beside - Where the container at
rootstands once its document is renamed toto: the same directory, a new name. What the recent list is told, after the store has done the renaming. - save_
container_ through - Save the container at
sourceas it stood atat, into a new one atroot— Save-as, and how a session that already has a manifest makes another. The lines are copied rather than re-authored, so everything the records carry comes with them.