diff -r ebc84c812384 -r 46218c8b8afa Symbian3/PDK/Source/GUID-D5B8DC2A-E2BA-54FE-A359-1496356AF93F.dita --- a/Symbian3/PDK/Source/GUID-D5B8DC2A-E2BA-54FE-A359-1496356AF93F.dita Thu Mar 11 15:24:26 2010 +0000 +++ b/Symbian3/PDK/Source/GUID-D5B8DC2A-E2BA-54FE-A359-1496356AF93F.dita Thu Mar 11 18:02:22 2010 +0000 @@ -1,18 +1,18 @@ - - - - - -How to delete files and directories

Use RmDir() to delete an empty directory. Use Delete() to delete a file.

-// Deletes KTopDir, deleting all files and sub-directories first -User::LeaveIfError(fsSession.Delete(KFile2)); -User::LeaveIfError(fsSession.RmDir(KDir1)); -User::LeaveIfError(fsSession.RmDir(KDir2)); -User::LeaveIfError(fsSession.Delete(KFile1)); + + + + + +How to delete files and directories

Use RmDir() to delete an empty directory. Use Delete() to delete a file.

+// Deletes KTopDir, deleting all files and sub-directories first +User::LeaveIfError(fsSession.Delete(KFile2)); +User::LeaveIfError(fsSession.RmDir(KDir1)); +User::LeaveIfError(fsSession.RmDir(KDir2)); +User::LeaveIfError(fsSession.Delete(KFile1)); User::LeaveIfError(fsSession.RmDir(KTopDir)); ...
Notes
  • Files must be closed and must not be read-only in order to be deleted.

  • RFs::Delete() does not accept the use of wildcards. To delete multiple files, use CFileMan::Delete() instead.

\ No newline at end of file