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

Method pathUnlinkFile

lib/host/wasi/vinode.cpp:275–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275WasiExpect<void> VINode::pathUnlinkFile(std::shared_ptr<VINode> Fd,
276 std::string_view Path) {
277 if (!Fd->can(__WASI_RIGHTS_PATH_UNLINK_FILE)) {
278 return WasiUnexpect(__WASI_ERRNO_NOTCAPABLE);
279 }
280 EXPECTED_TRY(auto Buffer,
281 resolvePath(Fd, Path, static_cast<__wasi_lookupflags_t>(0)));
282
283 return Fd->Node.pathUnlinkFile(std::string(Path));
284}
285
286WasiExpect<void>
287VINode::getAddrinfo(std::string_view Node, std::string_view Service,

Callers 1

bodyMethod · 0.45

Calls 2

WasiUnexpectFunction · 0.85
canMethod · 0.80

Tested by

no test coverage detected