equal
deleted
inserted
replaced
24 |
24 |
25 |
25 |
26 // Copy the files specified. |
26 // Copy the files specified. |
27 void CopyFileL(const TDesC& anOld, const TDesC& aNew) |
27 void CopyFileL(const TDesC& anOld, const TDesC& aNew) |
28 { |
28 { |
|
29 TInt r = KErrNone; |
29 RFs fs; |
30 RFs fs; |
30 fs.Connect(); |
31 r = fs.Connect(); |
|
32 if (r != KErrNone) |
|
33 { |
|
34 User::Leave(r); |
|
35 } |
31 CleanupClosePushL(fs); |
36 CleanupClosePushL(fs); |
32 |
37 |
33 CFileMan* fileMan = CFileMan::NewL(fs); |
38 CFileMan* fileMan = CFileMan::NewL(fs); |
34 CleanupStack::PushL(fileMan); |
39 CleanupStack::PushL(fileMan); |
35 |
40 |