Salome HOME
change permission of the directory
[tools/simanio.git] / src / SimanIO_Link.cxx
index 25b489976ffce01f23237a1b152d28fdd8ba7092..dd90295db6f26077b6a5aa1d9f3633244babdc1b 100644 (file)
@@ -111,6 +111,7 @@ SimanIO_Configuration SimanIO_Link::RetrieveConf()
   
   //Cretae the directories
   system(("mkdir -p " + aClientFileDir).c_str());
+  system(("chmod -R g+w " + aTmpDir + "/SimanSalome/").c_str());
   
   //Download the siman-salome.conf file
   ofstream outputStream;
@@ -167,7 +168,9 @@ SimanIO_Configuration SimanIO_Link::RetrieveConf()
     }//aDocIter
   }//actIter
 
-
+  //delete the siman-salome.conf file.
+  system(("rm " + aClientFilePath).c_str());
+  
   //Delete objects
   delete aCreateConfigFileRequest;
   delete aCreateConfigFileResponse;