equal
deleted
inserted
replaced
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) |