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

Method GetFile

libs/platform/http_request.cpp:363–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361}
362
363HttpRequest * HttpRequest::GetFile(std::vector<string> const & urls, string const & filePath, int64_t fileSize,
364 Callback && onFinish, Callback && onProgress, int64_t chunkSize,
365 bool doCleanOnCancel)
366{
367 try
368 {
369 return new FileHttpRequest(urls, filePath, fileSize, std::move(onFinish), std::move(onProgress), chunkSize,
370 doCleanOnCancel);
371 }
372 catch (FileWriter::Exception const & e)
373 {
374 // Can't create or open file for writing.
375 LOG(LWARNING, ("Can't create file", filePath, "with size", fileSize, e.Msg()));
376 }
377 return nullptr;
378}
379} // namespace downloader

Callers 15

PointToMwmIdMethod · 0.80
SerializeMethod · 0.80
ForTracksSortedByMwmNameFunction · 0.80
MatchTracksFunction · 0.80
CmdGPXFunction · 0.80
AddTracksStatsMethod · 0.80
CmdUnmatchedTracksFunction · 0.80
ShowRegionsStatsFunction · 0.80
mainFunction · 0.80
MakeNumMwmTreeFunction · 0.80
CreateNumMwmIdsFunction · 0.80
storage.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected