MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / parseParent

Function parseParent

system/lib/wasmfs/paths.cpp:131–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129} // anonymous namespace
130
131ParsedParent parseParent(std::string_view path, __wasi_fd_t basefd) {
132 auto base = getBaseDir(basefd);
133 if (auto err = base.getError()) {
134 return err;
135 }
136 size_t recursions = 0;
137 auto baseDir = base.getFile()->cast<Directory>();
138 return doParseParent(path, baseDir, recursions);
139}
140
141ParsedFile
142parseFile(std::string_view path, __wasi_fd_t basefd, LinkBehavior links) {

Callers 11

_wasmfs_write_fileFunction · 0.85
wasmfs_create_fileFunction · 0.85
__syscall_openatFunction · 0.85
__syscall_mknodatFunction · 0.85
wasmfs_create_directoryFunction · 0.85
__syscall_mkdiratFunction · 0.85
__syscall_unlinkatFunction · 0.85
wasmfs_unmountFunction · 0.85
__syscall_renameatFunction · 0.85
__syscall_symlinkatFunction · 0.85
preloadFilesMethod · 0.85

Calls 4

getBaseDirFunction · 0.85
doParseParentFunction · 0.85
getErrorMethod · 0.45
getFileMethod · 0.45

Tested by

no test coverage detected