MCPcopy Create free account
hub / github.com/bytedance/bolt / rmdir

Method rmdir

bolt/common/file/FileSystems.cpp:265–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263 }
264
265 void rmdir(std::string_view path) override {
266 std::error_code ec;
267 std::filesystem::remove_all(path, ec);
268 BOLT_CHECK_EQ(
269 0,
270 ec.value(),
271 "Rmdir {} failed: {}, message: {}",
272 std::string(path),
273 ec.value(),
274 ec.message());
275 VLOG(1) << "LocalFileSystem::rmdir " << path;
276 }
277
278 static std::function<bool(std::string_view)> schemeMatcher() {
279 // Note: presto behavior is to prefix local paths with 'file:'.

Callers 5

createTraceDirectoryFunction · 0.45
cleanupMethod · 0.45
removeDirecrtoryIfExistFunction · 0.45
TESTFunction · 0.45

Calls 2

messageMethod · 0.80
valueMethod · 0.45

Tested by 3

cleanupMethod · 0.36
removeDirecrtoryIfExistFunction · 0.36
TESTFunction · 0.36