messagingfw/msgsrvnstore/server/src/TMsvServerStoreManager.cpp
branchRCL_3
changeset 22 d2c4c66342f3
parent 20 e4175d61d967
child 23 d51193d814ea
equal deleted inserted replaced
21:e5b3a2155e1a 22:d2c4c66342f3
   382 
   382 
   383 	tempFilePathAndName.Append(KMsvUtilsNewExtension);
   383 	tempFilePathAndName.Append(KMsvUtilsNewExtension);
   384 	
   384 	
   385 	TInt error= aFile.Replace(*iFs,tempFilePathAndName,EFileShareExclusive|EFileWrite);
   385 	TInt error= aFile.Replace(*iFs,tempFilePathAndName,EFileShareExclusive|EFileWrite);
   386 	if (error==KErrPathNotFound)
   386 	if (error==KErrPathNotFound)
   387 	{
   387 		{
   388         //only create directory if not found
   388         //only create directory if not found
   389         error=iFs->MkDirAll(tempFilePathAndName);
   389         error=iFs->MkDirAll(tempFilePathAndName);
   390         if (error==KErrNone)
   390         if (error==KErrNone)
   391             error=aFile.Replace(*iFs,tempFilePathAndName,EFileShareExclusive|EFileWrite);
   391             error=aFile.Replace(*iFs,tempFilePathAndName,EFileShareExclusive|EFileWrite);
   392 	}
   392 		}
   393 	User::LeaveIfError(error);
   393 	User::LeaveIfError(error);
   394 	
   394 	
   395 	}
   395 	}
   396 
   396 
   397 void TMsvServerStoreManager::ReplaceFileStoreL(TMsvId aEntryId)
   397 void TMsvServerStoreManager::ReplaceFileStoreL(TMsvId aEntryId)