| 108 | } |
| 109 | |
| 110 | void 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 | |
| 129 | void ArchivalManager::CreateUploadTask(std::string const & filePath) |
| 130 | { |
no test coverage detected