X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=getcommandinfocommand.cpp;fp=getcommandinfocommand.cpp;h=03c6b17a8a9be441c52070f2af24705eb8f3a168;hb=19fcbbdba99658f5eca244803280f9ee7f9f6607;hp=ad706ef6bedeacf414ac9bbe3ad7119735b514d2;hpb=65b6a38d00b3a72021611211e7c25392022c69ed;p=mothur.git diff --git a/getcommandinfocommand.cpp b/getcommandinfocommand.cpp index ad706ef..03c6b17 100644 --- a/getcommandinfocommand.cpp +++ b/getcommandinfocommand.cpp @@ -92,7 +92,7 @@ int GetCommandInfoCommand::execute(){ //loop through each command outputting info for (it = commands.begin(); it != commands.end(); it++) { - if (m->control_pressed) { m->mothurOut("[ERROR]: did not complete making the file."); m->mothurOutEndLine(); out.close(); remove((output+".temp").c_str()); } + if (m->control_pressed) { m->mothurOut("[ERROR]: did not complete making the file."); m->mothurOutEndLine(); out.close(); m->mothurRemove((output+".temp")); } Command* thisCommand = commandFactory->getCommand(it->first); @@ -186,7 +186,7 @@ int GetCommandInfoCommand::execute(){ out2.close(); m->appendFiles(output+".temp", output); - remove((output+".temp").c_str()); + m->mothurRemove((output+".temp")); m->mothurOutEndLine(); m->mothurOut("Output File Names: "); m->mothurOutEndLine();