26inline namespace Services {
30 : m_connection(connection), m_fileMap(dependency.fileMap()) {}
34 const auto& localFile = item.first;
35 const auto& distantFile = item.second;
50 return boost::filesystem::is_regular_file(localFile);
63 if (not boost::filesystem::is_regular_file(localFile)) {
66 return boost::filesystem::file_size(localFile) > 0;
Macro to silence unused variables warnings from the compiler.
The connection configuration mainly holds:
bool overwritingAllowed() const
Check whether existing local files can be overwritten.
void downloadOneFile(path distantFile, path localFile) const
virtual std::string createDownloadCommand(path distantFile, path localFile) const =0
DataSynchronizer(const ConnectionConfiguration &connection, const DependencyConfiguration &dependency)
bool fileAlreadyExists(path localFile) const
std::map< path, path > m_fileMap
bool hasBeenDownloaded(path distantFile, path localFile) const
void downloadAllFiles() const
bool fileShouldBeWritten(path localFile) const
ConnectionConfiguration m_connection
The dependency configurations holds, for each test file to be retrieved:
An exception raised when downloading fails.
ELEMENTS_API std::pair< std::string, std::string > runCommandAndCaptureOutErr(std::string command)
Path::Item path
importing the path item from ElementsKernel
ELEMENTS_API void createLocalDirOf(path localFile)