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

Method insertDirectory

system/lib/wasmfs/file.cpp:106–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106std::shared_ptr<Directory>
107Directory::Handle::insertDirectory(const std::string& name, mode_t mode) {
108 // Cannot insert into an unlinked directory.
109 if (!getParent()) {
110 return nullptr;
111 }
112 auto child = getDir()->insertDirectory(name, mode);
113 if (!child) {
114 return nullptr;
115 }
116 cacheChild(name, child, DCacheKind::Normal);
117 updateMTime();
118 return child;
119}
120
121std::shared_ptr<Symlink>
122Directory::Handle::insertSymlink(const std::string& name,

Callers 2

doMkdirFunction · 0.45
preloadFilesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected