| 440 | |
| 441 | |
| 442 | void fileTimes(const std::string& filename, struct tm *createTime, |
| 443 | struct tm *modTime) |
| 444 | { |
| 445 | VSIStatBufL sStat; |
| 446 | if (VSIStatL(filename.c_str(), &sStat) == 0) |
| 447 | { |
| 448 | if (createTime) |
| 449 | VSIGMTime(const_cast<time_t *>(&sStat.st_ctime), createTime); |
| 450 | if (modTime) |
| 451 | VSIGMTime(const_cast<time_t *>(&sStat.st_mtime), modTime); |
| 452 | } |
| 453 | } |
| 454 | |
| 455 | |
| 456 | std::string extension(const std::string& filename) |