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

Function GenerateValidAndUniqueFilePathForGPX

libs/map/bookmark_helpers.cpp:358–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356}
357
358std::string GenerateValidAndUniqueFilePathForGPX(std::string const & fileName)
359{
360 std::string filePath = RemoveInvalidSymbols(fileName);
361 if (filePath.empty())
362 filePath = kDefaultBookmarksFileName;
363
364 return GenerateUniqueFileName(GetBookmarksDirectory(), std::move(filePath), kGpxExtension);
365}
366
367std::string GenerateValidAndUniqueTrashedFilePath(std::string const & fileName)
368{

Callers 1

Calls 4

RemoveInvalidSymbolsFunction · 0.85
GenerateUniqueFileNameFunction · 0.85
GetBookmarksDirectoryFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected