MCPcopy Create free account
hub / github.com/apache/arrow / DeleteRootDirContents

Method DeleteRootDirContents

cpp/src/arrow/filesystem/mockfs.cc:530–535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

528}
529
530Status MockFileSystem::DeleteRootDirContents() {
531 auto guard = impl_->lock_guard();
532
533 impl_->RootDir().entries.clear();
534 return Status::OK();
535}
536
537Status MockFileSystem::DeleteFile(const std::string& path) {
538 RETURN_NOT_OK(ValidatePath(path));

Callers

nothing calls this directly

Calls 3

lock_guardMethod · 0.80
OKFunction · 0.50
clearMethod · 0.45

Tested by

no test coverage detected