X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=setdircommand.cpp;h=5a2c0022bf68ef4756d71ad6278b171bbce0f602;hp=a23b61dbcaf4c6f78705a96df5d80f3d4843cfa8;hb=f89b6501b7d80e705b6c50ff2c8bdd8bb5d2edf7;hpb=6777912b79eb6d011163da47f3ada09d1a9293c1 diff --git a/setdircommand.cpp b/setdircommand.cpp index a23b61d..5a2c002 100644 --- a/setdircommand.cpp +++ b/setdircommand.cpp @@ -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);