equal
deleted
inserted
replaced
20 #include <e32debug.h> |
20 #include <e32debug.h> |
21 #include <bautils.h> |
21 #include <bautils.h> |
22 |
22 |
23 TInt DoDeleteFileL(const TDesC& aFile) |
23 TInt DoDeleteFileL(const TDesC& aFile) |
24 { |
24 { |
25 TInt r = KErrNone; |
|
26 RFs fs; |
25 RFs fs; |
27 r = fs.Connect(); |
26 fs.Connect(); |
28 if (r != KErrNone) |
|
29 { |
|
30 User::Leave(r); |
|
31 } |
|
32 |
27 |
33 // Make the file writeable |
28 // Make the file writeable |
34 fs.SetAtt(aFile, 0, KEntryAttReadOnly); |
29 fs.SetAtt(aFile, 0, KEntryAttReadOnly); |
35 // Delete file using RFs |
30 // Delete file using RFs |
36 TInt err = fs.Delete(aFile); |
31 TInt err = fs.Delete(aFile); |