X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=commandfactory.hpp;fp=commandfactory.hpp;h=eb85c68513bc43ece5cf9802917ebe336bc03d5a;hb=6b32d112bb60e9f7eb6d4407a4eed4c49b67bced;hp=36e8f462b146fc7846ee6cf9ead1eb42e9757a36;hpb=89cfcfcc9e648d2f956f2ff419e64ba7907106d2;p=mothur.git diff --git a/commandfactory.hpp b/commandfactory.hpp index 36e8f46..eb85c68 100644 --- a/commandfactory.hpp +++ b/commandfactory.hpp @@ -27,8 +27,8 @@ public: bool isValidCommand(string, string); void printCommands(ostream&); void printCommandsCategories(ostream&); - void setOutputDirectory(string o) { outputDir = o; m->setOutputDir(o); } - void setInputDirectory(string i) { inputDir = i; } + void setOutputDirectory(string o) { if(m->dirCheck(o) || (o == "")) { outputDir = o; m->setOutputDir(o); } } + void setInputDirectory(string i) { if(m->dirCheck(i) || (i == "")) { inputDir = i; } } void setLogfileName(string n, bool a) { logFileName = n; append = a; } string getLogfileName() { return logFileName; } bool getAppend() { return append; }