equal
deleted
inserted
replaced
22 |
22 |
23 _LIT(KSeparator, "|"); // Invalid filepath char used to separate filenames |
23 _LIT(KSeparator, "|"); // Invalid filepath char used to separate filenames |
24 |
24 |
25 TInt DoRenameFileL(const TDesC& anOld,const TDesC& aNew) |
25 TInt DoRenameFileL(const TDesC& anOld,const TDesC& aNew) |
26 { |
26 { |
27 TInt r = KErrNone; |
|
28 RFs fs; |
27 RFs fs; |
29 r = fs.Connect(); |
28 fs.Connect(); |
30 if (r != KErrNone) |
|
31 { |
|
32 User::Leave(r); |
|
33 } |
|
34 CFileMan* fileMan = CFileMan::NewL(fs); |
29 CFileMan* fileMan = CFileMan::NewL(fs); |
35 CleanupStack::PushL(fileMan); |
30 CleanupStack::PushL(fileMan); |
36 // Ensure the path exists |
31 // Ensure the path exists |
37 TInt err = fs.MkDirAll(aNew); |
32 TInt err = fs.MkDirAll(aNew); |
38 // Make the destination file writeable |
33 // Make the destination file writeable |