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

Method pathFilestatSetTimes

lib/host/wasi/vinode.cpp:128–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128WasiExpect<void> VINode::pathFilestatSetTimes(std::shared_ptr<VINode> Fd,
129 std::string_view Path,
130 __wasi_lookupflags_t Flags,
131 __wasi_timestamp_t ATim,
132 __wasi_timestamp_t MTim,
133 __wasi_fstflags_t FstFlags) {
134 if (!Fd->can(__WASI_RIGHTS_PATH_FILESTAT_SET_TIMES)) {
135 return WasiUnexpect(__WASI_ERRNO_NOTCAPABLE);
136 }
137 EXPECTED_TRY(auto Buffer, resolvePath(Fd, Path, Flags));
138 return Fd->Node.pathFilestatSetTimes(std::string(Path), ATim, MTim, FstFlags);
139}
140
141WasiExpect<void> VINode::pathLink(std::shared_ptr<VINode> Old,
142 std::string_view OldPath,

Callers 1

bodyMethod · 0.45

Calls 2

WasiUnexpectFunction · 0.85
canMethod · 0.80

Tested by

no test coverage detected