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

Function DeleteDirTreeInternal

cpp/src/arrow/util/io_util.cc:843–850  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

841}
842
843Status DeleteDirTreeInternal(const PlatformFilename& dir_path) {
844 ARROW_ASSIGN_OR_RAISE(auto entries, ListDirInternal(dir_path));
845 for (const auto& entry : entries) {
846 PlatformFilename path = dir_path.Join(PlatformFilename(entry.cFileName));
847 RETURN_NOT_OK(DeleteDirEntry(path, entry));
848 }
849 return Status::OK();
850}
851
852Result<bool> DeleteDirContents(const PlatformFilename& dir_path, bool allow_not_found,
853 bool remove_top_dir) {

Callers 1

DeleteDirEntryDirFunction · 0.85

Calls 4

DeleteDirEntryFunction · 0.85
LinkStatFunction · 0.85
OKFunction · 0.50
JoinMethod · 0.45

Tested by

no test coverage detected