]> git.donarmstrong.com Git - mothur.git/blobdiff - setdircommand.cpp
fixed bugs for 1.8
[mothur.git] / setdircommand.cpp
index a23b61dbcaf4c6f78705a96df5d80f3d4843cfa8..5a2c0022bf68ef4756d71ad6278b171bbce0f602 100644 (file)
@@ -99,6 +99,7 @@ int SetDirectoryCommand::execute(){
                        if(!out) {
                                mothurOut(output + " directory does not exist or is not writable."); mothurOutEndLine(); 
                        }else{
+                               out.close();
                                remove(outTemp.c_str());
                                mothurOut("Changing output directory to " + output); mothurOutEndLine();  
                                commandFactory->setOutputDirectory(output);
@@ -124,6 +125,7 @@ int SetDirectoryCommand::execute(){
                        if(!in) {
                                mothurOut(input + " directory does not exist or is not writable."); mothurOutEndLine(); 
                        }else{
+                               in.close();
                                remove(inTemp.c_str());
                                mothurOut("Changing input directory to " + input); mothurOutEndLine();  
                                commandFactory->setInputDirectory(input);