| 829 | } |
| 830 | |
| 831 | Status DeleteDirEntry(const PlatformFilename& path, const WIN32_FIND_DATAW& entry) { |
| 832 | if ((entry.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) != 0) { |
| 833 | return DeleteDirEntryDir(path, entry); |
| 834 | } |
| 835 | // It's a non-directory entry, most likely a regular file |
| 836 | if (!DeleteFileW(path.ToNative().c_str())) { |
| 837 | return IOErrorFromWinError(GetLastError(), "Cannot delete file '", path.ToString(), |
| 838 | "': "); |
| 839 | } |
| 840 | return Status::OK(); |
| 841 | } |
| 842 | |
| 843 | Status DeleteDirTreeInternal(const PlatformFilename& dir_path) { |
| 844 | ARROW_ASSIGN_OR_RAISE(auto entries, ListDirInternal(dir_path)); |
no test coverage detected