]> git.donarmstrong.com Git - mothur.git/blobdiff - setdircommand.cpp
changes for 1.12.2
[mothur.git] / setdircommand.cpp
index 1bc78bdf13cd69ee3be268bef006fc74d69dce9e..001ae235dd11ff0f015ebeba76de10ee3bcb2dbf 100644 (file)
@@ -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;