lowlevellibsandfws/pluginfw/Framework/EcomTestUtils/t_processfilemandeletedir.cpp
equal
deleted
inserted
replaced
22 #include <bautils.h> |
22 #include <bautils.h> |
23 |
23 |
24 |
24 |
25 TInt DoDeleteDirL(const TDesC& aPath) |
25 TInt DoDeleteDirL(const TDesC& aPath) |
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 |
31 |
37 // Make the file writeable |
32 // Make the file writeable |
38 TInt err = fileMan->Attribs(aPath, 0, KEntryAttReadOnly, TTime(0), 0); |
33 TInt err = fileMan->Attribs(aPath, 0, KEntryAttReadOnly, TTime(0), 0); |