equal
deleted
inserted
replaced
1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 1998-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
235 if(err == KErrNone) |
235 if(err == KErrNone) |
236 { |
236 { |
237 TEntry entry; |
237 TEntry entry; |
238 if(fsSession.Entry(aFullName, entry) == KErrNone) |
238 if(fsSession.Entry(aFullName, entry) == KErrNone) |
239 { |
239 { |
240 RDebug::Print(_L("Deleting \"%S\" file.\n"), &aFullName); |
240 test.Printf(_L("Deleting \"%S\" file.\n"), &aFullName); |
241 err = fsSession.SetAtt(aFullName, 0, KEntryAttReadOnly); |
241 err = fsSession.SetAtt(aFullName, 0, KEntryAttReadOnly); |
242 if(err != KErrNone) |
242 if(err != KErrNone) |
243 { |
243 { |
244 RDebug::Print(_L("Error %d changing \"%S\" file attributes.\n"), err, &aFullName); |
244 test.Printf(_L("Error %d changing \"%S\" file attributes.\n"), err, &aFullName); |
245 } |
245 } |
246 err = fsSession.Delete(aFullName); |
246 err = fsSession.Delete(aFullName); |
247 if(err != KErrNone) |
247 if(err != KErrNone) |
248 { |
248 { |
249 RDebug::Print(_L("Error %d deleting \"%S\" file.\n"), err, &aFullName); |
249 test.Printf(_L("Error %d deleting \"%S\" file.\n"), err, &aFullName); |
250 } |
250 } |
251 } |
251 } |
252 fsSession.Close(); |
252 fsSession.Close(); |
253 } |
253 } |
254 else |
254 else |
255 { |
255 { |
256 RDebug::Print(_L("Error %d connecting file session. File: %S.\n"), err, &aFullName); |
256 test.Printf(_L("Error %d connecting file session. File: %S.\n"), err, &aFullName); |
257 } |
257 } |
258 } |
258 } |
259 |
259 |
260 // |
260 // |
261 // Test file-based streams. |
261 // Test file-based streams. |