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

Function parseFile

system/lib/wasmfs/paths.cpp:141–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141ParsedFile
142parseFile(std::string_view path, __wasi_fd_t basefd, LinkBehavior links) {
143 auto base = getBaseDir(basefd);
144 if (auto err = base.getError()) {
145 return err;
146 }
147 size_t recursions = 0;
148 auto baseDir = base.getFile()->cast<Directory>();
149 return doParseFile(path, baseDir, links, recursions);
150}
151
152ParsedFile getFileAt(__wasi_fd_t fd, std::string_view path, int flags) {
153 if ((flags & AT_EMPTY_PATH) && path.size() == 0) {

Callers 8

__syscall_chdirFunction · 0.85
__syscall_readlinkatFunction · 0.85
__syscall_faccessatFunction · 0.85
__syscall_truncate64Function · 0.85
__syscall_statfs64Function · 0.85
preloadFilesMethod · 0.85
getFileAtFunction · 0.85

Calls 4

getBaseDirFunction · 0.85
doParseFileFunction · 0.85
getErrorMethod · 0.45
getFileMethod · 0.45

Tested by

no test coverage detected