| 107 | } // namespace |
| 108 | |
| 109 | string GetFilePath(int64_t version, string const & dataDir, string const & countryName, MapFileType type) |
| 110 | { |
| 111 | string const filename = GetFileName(countryName, type); |
| 112 | string const dir = GetDataDirFullPath(dataDir); |
| 113 | if (version == 0) |
| 114 | return base::JoinPath(dir, filename); |
| 115 | return base::JoinPath(dir, strings::to_string(version), filename); |
| 116 | } |
| 117 | |
| 118 | void DeleteDownloaderFilesForCountry(int64_t version, CountryFile const & countryFile) |
| 119 | { |
no test coverage detected