| 1189 | } |
| 1190 | |
| 1191 | S32 CompareModifiedTimes(const Path& p1, const Path& p2) |
| 1192 | { |
| 1193 | FileNode::Attributes a1, a2; |
| 1194 | if (!Torque::FS::GetFileAttributes(p1, &a1)) |
| 1195 | return -1; |
| 1196 | if (!Torque::FS::GetFileAttributes(p2, &a2)) |
| 1197 | return -1; |
| 1198 | if (a1.mtime < a2.mtime) |
| 1199 | return -1; |
| 1200 | if (a1.mtime == a2.mtime) |
| 1201 | return 0; |
| 1202 | return 1; |
| 1203 | } |
| 1204 | |
| 1205 | FileNodeRef GetFileNode(const Path &path) |
| 1206 | { |
no test coverage detected