25#include <boost/filesystem/operations.hpp>
42 const auto& localFile = item.first;
43 const auto& distantFile = item.second;
58 return boost::filesystem::is_regular_file(localFile);
71 if (not boost::filesystem::is_regular_file(localFile)) {
74 return boost::filesystem::file_size(localFile) > 0;
Macro to silence unused variables warnings from the compiler.
The connection configuration mainly holds:
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)