| 841 | } |
| 842 | |
| 843 | Status 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 | |
| 852 | Result<bool> DeleteDirContents(const PlatformFilename& dir_path, bool allow_not_found, |
| 853 | bool remove_top_dir) { |
no test coverage detected