Skip to main content

Module directory

Module directory 

Source
Expand description

Handles: what a directory holds, and how one is reached.

Every call here is one File System Access API call plus the typed question it was asked — whether something missing is nothing or is made, and whether a removal takes what is under it.

Enums§

Depth
Whether a removal takes what is under the name with it.
Missing
What to do about a name nothing stands under.

Functions§

copy
Copy everything from holds into into, directories and all.
directories
What of holds that is itself a directory, by name — which is every container in the origin’s root, and whatever else is down there.
directory
The directory called name in within.
file
The file called name in within.
held
What of holds, as handles — the form the library reads a kind off.
holds
Whether of holds a directory called name — the question a rename asks before it moves anything.
names
What of holds, by name.
remove
Errors
walked 🔒
Drain an async iterator, which is how a directory answers what is in it.