]> git.donarmstrong.com Git - mothur.git/blobdiff - mothurout.cpp
added processors to pre.cluster for mac and windows. Fixed bug in reNameFile function...
[mothur.git] / mothurout.cpp
index df1a1c0615be21cd53ab51b0a82cfaab3871e847..1920221fd8c64a0c98e21c8ba71c19e7e49e906b 100644 (file)
@@ -891,10 +891,10 @@ int MothurOut::renameFile(string oldName, string newName){
        try {
                ifstream inTest;
                int exist = openInputFile(newName, inTest, "");
+               inTest.close();
                
        #if defined (__APPLE__) || (__MACH__) || (linux) || (__linux)           
                if (exist == 0) { //you could open it so you want to delete it
-                       inTest.close();
                        string command = "rm " + newName;
                        system(command.c_str());
                }