+
+ //set default
+ if (tempdefault == "clear") {
+ #ifdef MOTHUR_FILES
+ string temp = MOTHUR_FILES;
+ m->mothurOut("Resetting default directory to " + temp); m->mothurOutEndLine();
+ m->setDefaultPath(temp);
+ #else
+ string temp = "";
+ m->mothurOut("No default directory defined at compile time."); m->mothurOutEndLine();
+ m->setDefaultPath(temp);
+ #endif
+ }else if (tempdefault == "") { //do nothing
+ }else {
+ //add / to name if needed
+ string lastChar = tempdefault.substr(tempdefault.length()-1);
+ #if defined (__APPLE__) || (__MACH__) || (linux) || (__linux)
+ if (lastChar != "/") { tempdefault += "/"; }
+ #else
+ if (lastChar != "\\") { tempdefault += "\\"; }
+ #endif
+
+ m->mothurOut("Changing default directory to " + tempdefault); m->mothurOutEndLine();
+ m->setDefaultPath(tempdefault);
+ }