]> git.donarmstrong.com Git - mothur.git/blobdiff - clustercommand.cpp
rewrote metastats command in c++, added mothurRemove function to handle ~ error....
[mothur.git] / clustercommand.cpp
index fd1f841dacab7ea017f15400766f384f10789cf3..059f277db6856e2b8c360dbb03b1929d7fa39de5 100644 (file)
@@ -244,7 +244,7 @@ int ClusterCommand::execute(){
                if (m->control_pressed) { //clean up
                        delete list; delete matrix; delete rabund;
                        sabundFile.close();rabundFile.close();listFile.close();
-                       for (int i = 0; i < outputNames.size(); i++) {  remove(outputNames[i].c_str());         } outputTypes.clear();
+                       for (int i = 0; i < outputNames.size(); i++) {  m->mothurRemove(outputNames[i]);        } outputTypes.clear();
                        return 0;
                }
                
@@ -283,7 +283,7 @@ int ClusterCommand::execute(){
                        if (m->control_pressed) { //clean up
                                delete list; delete matrix; delete rabund; delete cluster;
                                sabundFile.close();rabundFile.close();listFile.close();
-                               for (int i = 0; i < outputNames.size(); i++) {  remove(outputNames[i].c_str());         } outputTypes.clear();
+                               for (int i = 0; i < outputNames.size(); i++) {  m->mothurRemove(outputNames[i]);        } outputTypes.clear();
                                return 0;
                        }