From: bri Date: Mon, 10 Feb 2014 14:27:09 +0000 (+0400) Subject: addition of forced removing of tmp directory X-Git-Tag: Delivery_V1_0_2013_07_12~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fc2be4b70d0dace31d2fa63a7649ef1d402020a7;p=tools%2Fsimanio.git addition of forced removing of tmp directory --- diff --git a/src/SimanIO_Link.cxx b/src/SimanIO_Link.cxx index 336a68b..35edb6b 100644 --- a/src/SimanIO_Link.cxx +++ b/src/SimanIO_Link.cxx @@ -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;