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

Method bind

lib/host/wasi/vinode.cpp:98–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98WasiExpect<std::shared_ptr<VINode>> VINode::bind(__wasi_rights_t FRB,
99 __wasi_rights_t FRI,
100 std::string Name,
101 std::string SystemPath) {
102 EXPECTED_TRY(auto Node,
103 INode::open(std::move(SystemPath), __WASI_OFLAGS_DIRECTORY,
104 __wasi_fdflags_t(0), VFS::Read));
105 return std::make_shared<VINode>(std::move(Node), FRB, FRI, std::move(Name));
106}
107
108WasiExpect<void> VINode::pathCreateDirectory(std::shared_ptr<VINode> Fd,
109 std::string_view Path) {

Callers 1

handle_cmdFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected