string SALOME_FileTransferCORBA::getLocalFile(string localFile)
{
- MESSAGE("SALOME_FileTransferCORBA::getLocalFile");
+ MESSAGE("SALOME_FileTransferCORBA::getLocalFile " << localFile);
Engines::Container_var container;
string myMachine = GetHostname();
string localCopy = _theFileRef->getRef(myMachine.c_str());
- if (localCopy.empty())
+ if (localCopy.empty()) // no existing copy available
{
- if (localFile.empty())
+ if (localFile.empty()) // no name provided for local copy
{
char bufName[256];
localCopy = tmpnam(bufName);
MESSAGE("end of transfer");
fileTransfer->close(fileId);
_theFileRef->addRef(myMachine.c_str(), localFile.c_str());
+ localCopy = localFile;
}
else
{