X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=setdircommand.cpp;h=001ae235dd11ff0f015ebeba76de10ee3bcb2dbf;hb=0b99c6b6ea875e13febda76903fd4d9cda7add7d;hp=1bc78bdf13cd69ee3be268bef006fc74d69dce9e;hpb=fbaa6c7ac44f857c1ece7c8199e9e7e09b4bbe74;p=mothur.git diff --git a/setdircommand.cpp b/setdircommand.cpp index 1bc78bd..001ae23 100644 --- a/setdircommand.cpp +++ b/setdircommand.cpp @@ -157,19 +157,8 @@ int SetDirectoryCommand::execute(){ if (lastChar != "\\") { tempdefault += "\\"; } #endif - //test to make sure directory exists - tempdefault = getFullPathName(tempdefault); - string inTemp = tempdefault + "temp"; - ofstream in; - in.open(inTemp.c_str(), ios::trunc); - if(!in) { - m->mothurOut(tempdefault + " directory does not exist or is not writable."); m->mothurOutEndLine(); - }else{ - in.close(); - remove(inTemp.c_str()); - m->mothurOut("Changing default directory to " + tempdefault); m->mothurOutEndLine(); - m->setDefaultPath(tempdefault); - } + m->mothurOut("Changing default directory to " + tempdefault); m->mothurOutEndLine(); + m->setDefaultPath(tempdefault); } return 0;