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". |
908 if(err == KErrNone) |
908 if(err == KErrNone) |
909 { |
909 { |
910 TEntry entry; |
910 TEntry entry; |
911 if(fsSession.Entry(aFullName, entry) == KErrNone) |
911 if(fsSession.Entry(aFullName, entry) == KErrNone) |
912 { |
912 { |
913 RDebug::Print(_L("Deleting \"%S\" file.\n"), &aFullName); |
913 test.Printf(_L("Deleting \"%S\" file.\n"), &aFullName); |
914 err = fsSession.SetAtt(aFullName, 0, KEntryAttReadOnly); |
914 err = fsSession.SetAtt(aFullName, 0, KEntryAttReadOnly); |
915 if(err != KErrNone) |
915 if(err != KErrNone) |
916 { |
916 { |
917 RDebug::Print(_L("Error %d changing \"%S\" file attributes.\n"), err, &aFullName); |
917 test.Printf(_L("Error %d changing \"%S\" file attributes.\n"), err, &aFullName); |
918 } |
918 } |
919 err = fsSession.Delete(aFullName); |
919 err = fsSession.Delete(aFullName); |
920 if(err != KErrNone) |
920 if(err != KErrNone) |
921 { |
921 { |
922 RDebug::Print(_L("Error %d deleting \"%S\" file.\n"), err, &aFullName); |
922 test.Printf(_L("Error %d deleting \"%S\" file.\n"), err, &aFullName); |
923 } |
923 } |
924 } |
924 } |
925 fsSession.Close(); |
925 fsSession.Close(); |
926 } |
926 } |
927 else |
927 else |
928 { |
928 { |
929 RDebug::Print(_L("Error %d connecting file session. File: %S.\n"), err, &aFullName); |
929 test.Printf(_L("Error %d connecting file session. File: %S.\n"), err, &aFullName); |
930 } |
930 } |
931 } |
931 } |
932 |
932 |
933 GLDEF_C TInt E32Main() |
933 GLDEF_C TInt E32Main() |
934 { |
934 { |