MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / pathCreateDirectory

Method pathCreateDirectory

lib/host/wasi/vinode.cpp:108–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108WasiExpect<void> VINode::pathCreateDirectory(std::shared_ptr<VINode> Fd,
109 std::string_view Path) {
110 if (!Fd->can(__WASI_RIGHTS_PATH_CREATE_DIRECTORY)) {
111 return WasiUnexpect(__WASI_ERRNO_NOTCAPABLE);
112 }
113 EXPECTED_TRY(auto Buffer, resolvePath(Fd, Path, false));
114 return Fd->Node.pathCreateDirectory(std::string(Path));
115}
116
117WasiExpect<void> VINode::pathFilestatGet(std::shared_ptr<VINode> Fd,
118 std::string_view Path,

Callers 1

bodyMethod · 0.45

Calls 2

WasiUnexpectFunction · 0.85
canMethod · 0.80

Tested by

no test coverage detected