| 221 | } |
| 222 | |
| 223 | WasiExpect<void> VINode::pathRemoveDirectory(std::shared_ptr<VINode> Fd, |
| 224 | std::string_view Path) { |
| 225 | if (!Fd->can(__WASI_RIGHTS_PATH_REMOVE_DIRECTORY)) { |
| 226 | return WasiUnexpect(__WASI_ERRNO_NOTCAPABLE); |
| 227 | } |
| 228 | EXPECTED_TRY(auto Buffer, resolvePath(Fd, Path, false)); |
| 229 | |
| 230 | return Fd->Node.pathRemoveDirectory(std::string(Path)); |
| 231 | } |
| 232 | |
| 233 | WasiExpect<void> VINode::pathRename(std::shared_ptr<VINode> Old, |
| 234 | std::string_view OldPath, |
no test coverage detected