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

Function GetFilePathsToLoadFromKml

libs/map/bookmark_helpers.cpp:509–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

507}
508
509std::vector<std::string> GetFilePathsToLoadFromKml(std::string const & filePath)
510{ // Copy input file to temp output KML with unique name.
511 auto fileSavePath = GenerateValidAndUniqueFilePathForKML(base::FileNameFromFullPath(filePath));
512 if (!base::CopyFileX(filePath, fileSavePath))
513 return {};
514 return {std::move(fileSavePath)};
515}
516
517std::unique_ptr<kml::FileData> LoadKmlData(Reader const & reader, KmlFileType fileType)
518{

Callers 1

Calls 3

FileNameFromFullPathFunction · 0.85
CopyFileXFunction · 0.85

Tested by

no test coverage detected