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

Method PrepareUpload

libs/tracking/archival_manager.cpp:110–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110void ArchivalManager::PrepareUpload(std::vector<std::string> const & files)
111{
112 if (files.empty())
113 return;
114
115 archival_file::FilesAccumulator accum;
116
117 for (auto const & file : files)
118 accum.HandleFile(file);
119
120 auto const archives = accum.PrepareArchives(m_tracksDir);
121 for (auto const & archive : archives)
122 CreateUploadTask(archive);
123
124 WriteTimestamp(m_timestampFile);
125
126 accum.DeleteProcessedFiles();
127}
128
129void ArchivalManager::CreateUploadTask(std::string const & filePath)
130{

Callers 1

RunMethod · 0.80

Calls 4

HandleFileMethod · 0.80
PrepareArchivesMethod · 0.80
DeleteProcessedFilesMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected