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". |
1235 if(err == KErrNone) |
1235 if(err == KErrNone) |
1236 { |
1236 { |
1237 TEntry entry; |
1237 TEntry entry; |
1238 if(fsSession.Entry(aFullName, entry) == KErrNone) |
1238 if(fsSession.Entry(aFullName, entry) == KErrNone) |
1239 { |
1239 { |
1240 RDebug::Print(_L("Deleting \"%S\" file.\n"), &aFullName); |
1240 test.Printf(_L("Deleting \"%S\" file.\n"), &aFullName); |
1241 err = fsSession.SetAtt(aFullName, 0, KEntryAttReadOnly); |
1241 err = fsSession.SetAtt(aFullName, 0, KEntryAttReadOnly); |
1242 if(err != KErrNone) |
1242 if(err != KErrNone) |
1243 { |
1243 { |
1244 RDebug::Print(_L("Error %d changing \"%S\" file attributes.\n"), err, &aFullName); |
1244 test.Printf(_L("Error %d changing \"%S\" file attributes.\n"), err, &aFullName); |
1245 } |
1245 } |
1246 err = fsSession.Delete(aFullName); |
1246 err = fsSession.Delete(aFullName); |
1247 if(err != KErrNone) |
1247 if(err != KErrNone) |
1248 { |
1248 { |
1249 RDebug::Print(_L("Error %d deleting \"%S\" file.\n"), err, &aFullName); |
1249 test.Printf(_L("Error %d deleting \"%S\" file.\n"), err, &aFullName); |
1250 } |
1250 } |
1251 } |
1251 } |
1252 fsSession.Close(); |
1252 fsSession.Close(); |
1253 } |
1253 } |
1254 else |
1254 else |
1255 { |
1255 { |
1256 RDebug::Print(_L("Error %d connecting file session. File: %S.\n"), err, &aFullName); |
1256 test.Printf(_L("Error %d connecting file session. File: %S.\n"), err, &aFullName); |
1257 } |
1257 } |
1258 } |
1258 } |
1259 |
1259 |
1260 // |
1260 // |
1261 // Test streaming conversions. |
1261 // Test streaming conversions. |