]> SALOME platform Git repositories - tools/simanio.git/commitdiff
Salome HOME
addition of forced removing of tmp directory
authorbri <bri@opencascade.com>
Mon, 10 Feb 2014 14:27:09 +0000 (18:27 +0400)
committerbri <bri@opencascade.com>
Mon, 10 Feb 2014 14:27:09 +0000 (18:27 +0400)
src/SimanIO_Link.cxx

index 336a68b26f530eafc8ec5d93ce9dda2064b0d2c8..35edb6bea4a6c958c8335f80306241528481e08f 100644 (file)
@@ -109,9 +109,9 @@ SimanIO_Configuration SimanIO_Link::RetrieveConf()
   //string aClientFileDir = aTmpDir + "/SimanSalome/" +  myUser + "/download/";
   string aClientFilePath = aClientFileDir + aResponseFileName;
   
-  //Cretae the directories
+  //Create the directories
   system(("mkdir -p " + aClientFileDir).c_str());
-  system(("chmod -R g+w " + aTmpDir + "/SimanSalome/").c_str());
+  system(("chmod -Rf g+w " + aTmpDir + "/SimanSalome/").c_str());
   
   //Download the siman-salome.conf file
   ofstream outputStream;
@@ -169,7 +169,7 @@ SimanIO_Configuration SimanIO_Link::RetrieveConf()
   }//actIter
 
   //delete the siman-salome.conf file.
-  system(("rm " + aClientFilePath).c_str());
+//  system(("rm " + aClientFilePath).c_str());
   
   //Delete objects
   delete aCreateConfigFileRequest;