| 172 | } |
| 173 | |
| 174 | uint64_t GetLastModified(std::string_view path) |
| 175 | { |
| 176 | if (String::startsWith(path, Platform::kAndroidAssetPathPrefix)) |
| 177 | { |
| 178 | // Assets don't have a modification time in the traditional sense. |
| 179 | return 0; |
| 180 | } |
| 181 | |
| 182 | uint64_t lastModified = 0; |
| 183 | struct stat statInfo{}; |
| 184 | if (stat(std::string(path).c_str(), &statInfo) == 0) |
| 185 | { |
| 186 | lastModified = statInfo.st_mtime; |
| 187 | } |
| 188 | return lastModified; |
| 189 | } |
| 190 | |
| 191 | uint64_t GetFileSize(std::string_view path) |
| 192 | { |
no test coverage detected