From fc2be4b70d0dace31d2fa63a7649ef1d402020a7 Mon Sep 17 00:00:00 2001 From: bri Date: Mon, 10 Feb 2014 18:27:09 +0400 Subject: [PATCH] addition of forced removing of tmp directory --- src/SimanIO_Link.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.39.2