| 106 | } |
| 107 | |
| 108 | WasiExpect<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 | |
| 117 | WasiExpect<void> VINode::pathFilestatGet(std::shared_ptr<VINode> Fd, |
| 118 | std::string_view Path, |
no test coverage detected