| 67 | } |
| 68 | |
| 69 | Status GetLastModificationTime(const hdfsFS& connection, const char* filename, |
| 70 | time_t* last_mod_time) { |
| 71 | hdfsFileInfo* info = hdfsGetPathInfo(connection, filename); |
| 72 | if (info == NULL) return Status(GetHdfsErrorMsg("Failed to get file info ", filename)); |
| 73 | *last_mod_time = info->mLastMod; |
| 74 | hdfsFreeFileInfo(info, 1); |
| 75 | return Status::OK(); |
| 76 | } |
| 77 | |
| 78 | bool IsHiddenFile(const string& filename) { |
| 79 | return !filename.empty() && (filename[0] == '.' || filename[0] == '_'); |
no test coverage detected