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

Method pathReadlink

lib/host/wasi/vinode.cpp:211–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211WasiExpect<void> VINode::pathReadlink(std::shared_ptr<VINode> Fd,
212 std::string_view Path, Span<char> Buffer,
213 __wasi_size_t &NRead) {
214 if (!Fd->can(__WASI_RIGHTS_PATH_READLINK)) {
215 return WasiUnexpect(__WASI_ERRNO_NOTCAPABLE);
216 }
217 EXPECTED_TRY(auto PathBuffer,
218 resolvePath(Fd, Path, static_cast<__wasi_lookupflags_t>(0)));
219
220 return Fd->Node.pathReadlink(std::string(Path), Buffer, NRead);
221}
222
223WasiExpect<void> VINode::pathRemoveDirectory(std::shared_ptr<VINode> Fd,
224 std::string_view Path) {

Callers 2

resolvePathMethod · 0.45
bodyMethod · 0.45

Calls 2

WasiUnexpectFunction · 0.85
canMethod · 0.80

Tested by

no test coverage detected