MCPcopy Create free account
hub / github.com/comaps/comaps / GetFilePath

Function GetFilePath

libs/platform/local_country_file_utils.cpp:109–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107} // namespace
108
109string 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
118void DeleteDownloaderFilesForCountry(int64_t version, CountryFile const & countryFile)
119{

Callers 2

GetFileDownloadPathFunction · 0.70

Calls 4

GetDataDirFullPathFunction · 0.85
JoinPathFunction · 0.85
to_stringFunction · 0.85
GetFileNameFunction · 0.70

Tested by

no test coverage detected