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

Method DeleteDirContents

cpp/src/arrow/filesystem/filesystem.cc:403–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403Status SubTreeFileSystem::DeleteDirContents(const std::string& path,
404 bool missing_dir_ok) {
405 if (internal::IsEmptyPath(path)) {
406 return internal::InvalidDeleteDirContents(path);
407 }
408 ARROW_ASSIGN_OR_RAISE(auto real_path, PrependBase(path));
409 return base_fs_->DeleteDirContents(real_path, missing_dir_ok);
410}
411
412Status SubTreeFileSystem::DeleteRootDirContents() {
413 if (base_path_.empty()) {

Callers 2

DeleteRootDirContentsMethod · 0.45

Calls 3

IsEmptyPathFunction · 0.85
InvalidDeleteDirContentsFunction · 0.85
SleepMethod · 0.80

Tested by

no test coverage detected