Salome HOME
Get results from sub directories.
[tools/libbatch.git] / src / Core / BatchManager.cxx
index c50266fe91d184415ec81cce0d54b268fc1e8331..047b1ed20e3cdc120d00e1ed62d1d0a05ff46b63 100644 (file)
@@ -263,6 +263,10 @@ namespace Batch {
       if (!Utils::isAbsolutePath(localPath)) {
         localPath = directory + "/" + localPath;
       }
+      status = CommunicationProtocol::getInstance(SH).makeDirectory(
+                                             Utils::dirname(localPath), "", "");
+      if (status)
+        LOG("Directory creation failed. Status is: " << status);
       status = _protocol.copyFile(remotePath, _hostname, _username,
                                   localPath, "", "");
       if (status)