]> git.donarmstrong.com Git - mothur.git/blobdiff - setlogfilecommand.cpp
added kruskal.wallis command. added worked on make.lefse. working of lefse command...
[mothur.git] / setlogfilecommand.cpp
index 128c5671ed55712d2293e0b3c3959da17a7e9f05..41c8e743122399563b8367fda6a9d4a94f9bda86 100644 (file)
@@ -85,9 +85,14 @@ int SetLogFileCommand::execute(){
                
                if (abort == true) { if (calledHelp) { return 0; }  return 2;   }
                
                
                if (abort == true) { if (calledHelp) { return 0; }  return 2;   }
                
-               commandFactory = CommandFactory::getInstance();
-               
-               commandFactory->setLogfileName(name, append);
+        commandFactory = CommandFactory::getInstance();
+        
+        string directory = m->hasPath(name);
+        if (directory == "") {
+            commandFactory->setLogfileName(name, append);
+        }else if (m->dirCheck(directory)) {
+             commandFactory->setLogfileName(name, append);
+        }
                
                return 0;
        }
                
                return 0;
        }