| 123 | } |
| 124 | |
| 125 | std::string BaseName(const std::string& path) { |
| 126 | const size_t pos = path.find_last_of('/'); |
| 127 | if (pos == std::string::npos) { |
| 128 | return path; |
| 129 | } |
| 130 | return path.substr(pos + 1); |
| 131 | } |
| 132 | |
| 133 | bool GetFileFreshnessCacheKey(const std::string& path, std::string* cacheKey) { |
| 134 | #if defined(_WIN32) || defined(_WIN64) |