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

Function GetFilePathsToLoadFromGpx

libs/map/bookmark_helpers.cpp:501–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

499}
500
501std::vector<std::string> GetFilePathsToLoadFromGpx(std::string const & filePath)
502{ // Copy input file to temp GPX with unique name.
503 auto fileSavePath = GenerateValidAndUniqueFilePathForGPX(base::FileNameFromFullPath(filePath));
504 if (!base::CopyFileX(filePath, fileSavePath))
505 return {};
506 return {std::move(fileSavePath)};
507}
508
509std::vector<std::string> GetFilePathsToLoadFromKml(std::string const & filePath)
510{ // Copy input file to temp output KML with unique name.

Callers 1

Calls 3

FileNameFromFullPathFunction · 0.85
CopyFileXFunction · 0.85

Tested by

no test coverage detected