@jupyterlite / @jupyterlite/services / FS
Type Alias: FS#
FS =
EmscriptenFS&object
Defined in: packages/services/src/contents/emscripten.ts:137
The emscripten filesystem module API.
Type Declaration#
createNode()#
createNode: (
parent,name,mode,dev) =>IEmscriptenFSNode
Parameters#
parent#
IEmscriptenFSNode | null
name#
string
mode#
number
dev#
number
Returns#
destroyNode()?#
optionaldestroyNode: (node) =>void
Remove a node from the FS.nameTable cache
Parameters#
node#
Returns#
void
ErrnoError#
ErrnoError:
any
lookupNode()?#
optionallookupNode: (parent,name) =>IEmscriptenFSNode
Look a child node up, in the node cache first and then through node_ops
Parameters#
parent#
name#
string
Returns#
mayCreate()?#
optionalmayCreate: (dir,name) =>number
Return the error code preventing name from being created in dir or 0.
Parameters#
dir#
name#
string
Returns#
number