Revision 856fcf9a
Added by David Sorber over 2 years ago
| src/CopyManager.cc | ||
|---|---|---|
|
#include <sys/stat.h>
|
||
|
#include <fcntl.h>
|
||
|
#include <sys/sendfile.h>
|
||
|
#include <unistd.h>
|
||
|
|
||
|
#include "CopyManager.h"
|
||
|
#include "Logger.h"
|
||
| ... | ... | |
|
continue;
|
||
|
}
|
||
|
|
||
|
close(fromFd);
|
||
|
close(toFd);
|
||
|
LOG(debug) << "Copy: " << entry.path().string()
|
||
|
<< " to: " << destFilePath.string();
|
||
|
}
|
||
| ... | ... | |
|
}
|
||
|
|
||
|
}
|
||
|
}
|
||
|
}
|
||
| src/copytool_main.cc | ||
|---|---|---|
|
|
||
|
namespace sfs = std::filesystem;
|
||
|
|
||
|
const std::string VERSION("v0.1.0");
|
||
|
const std::string VERSION("v0.1.1");
|
||
|
|
||
|
const std::string BOLD{"\033[1m"};
|
||
|
const std::string ENDC{"\033[0m"};
|
||
Fix bug where files were not being closed; v0.1.1.