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". |
515 if(err == KErrNone) |
515 if(err == KErrNone) |
516 { |
516 { |
517 TEntry entry; |
517 TEntry entry; |
518 if(fsSession.Entry(aFullName, entry) == KErrNone) |
518 if(fsSession.Entry(aFullName, entry) == KErrNone) |
519 { |
519 { |
520 RDebug::Print(_L("Deleting \"%S\" file.\n"), &aFullName); |
520 test.Printf(_L("Deleting \"%S\" file.\n"), &aFullName); |
521 err = fsSession.SetAtt(aFullName, 0, KEntryAttReadOnly); |
521 err = fsSession.SetAtt(aFullName, 0, KEntryAttReadOnly); |
522 if(err != KErrNone) |
522 if(err != KErrNone) |
523 { |
523 { |
524 RDebug::Print(_L("Error %d changing \"%S\" file attributes.\n"), err, &aFullName); |
524 test.Printf(_L("Error %d changing \"%S\" file attributes.\n"), err, &aFullName); |
525 } |
525 } |
526 err = fsSession.Delete(aFullName); |
526 err = fsSession.Delete(aFullName); |
527 if(err != KErrNone) |
527 if(err != KErrNone) |
528 { |
528 { |
529 RDebug::Print(_L("Error %d deleting \"%S\" file.\n"), err, &aFullName); |
529 test.Printf(_L("Error %d deleting \"%S\" file.\n"), err, &aFullName); |
530 } |
530 } |
531 } |
531 } |
532 fsSession.Close(); |
532 fsSession.Close(); |
533 } |
533 } |
534 else |
534 else |
535 { |
535 { |
536 RDebug::Print(_L("Error %d connecting file session. File: %S.\n"), err, &aFullName); |
536 test.Printf(_L("Error %d connecting file session. File: %S.\n"), err, &aFullName); |
537 } |
537 } |
538 } |
538 } |
539 |
539 |
540 // |
540 // |
541 // Test streaming conversions. |
541 // Test streaming conversions. |