 |
ewmscp
..
|
Go to the documentation of this file.
9 "schema used for escaping file names in policy run file"));
18 std::ifstream srcList(source);
20 while (std::getline(srcList, line)) {
21 auto separatorStart = line.find(
" -- ");
22 if (separatorStart == std::string::npos) {
25 auto pathStart = separatorStart + 4;
27 escaper->deEscape(line.substr(pathStart), src);
33 src,
"stat",
"not found");
37 throw std::runtime_error(
"can't stat " + src);
39 if (sourceStat->isDir()) {
47 false, copyRequest::clock_type::now()));
static options::single< bool > ignoreMissing
class for defining the location of a error message in the source code.
static void quietStatPrinter(std::ostream &aLogStream)
void processSource(const std::string &source) override
static factoryTemplate< policyRunRequestProvider > factory
static void setStatPrinter(void(*f)(std::ostream &))
static options::single< std::string > * newEscaperOption(const std::string &name, const std::string &description, const std::string &defaultValue="Url")
static void printStats(std::ostream &stream)
static const escapism * newEscaper(const std::string &name)
static options::single< std::string > & escaperOption
virtual std::unique_ptr< const genericStat > getStat(const std::string &path, bool followLink=true)=0
void emit(level aLogLevel, const location &loc, const std::string &aObject, const std::string &aAction, const Args &... args)
function to create and enqueue a message, this is the only way that messages should be created!
options::single< bool > printStatAnyway
#define timerInst(subfunc)
inputHandler::base * InputHandler
static std::multiset< copyRequest::base *, copyRequest::base::pointerCompare > requestSet
virtual const singleMap & getDstPath(const std::string &source, std::string &destination, bool baseNameOnly=false)
get detstination papth for a given source path
static options::single< bool > quiet('q', "quiet", "be quiet, no prefix to output lines")
#define defineStatic(var,...)
defines a static variable and instatitates the constructor with the variable number of arguments.