equal
deleted
inserted
replaced
898 |
898 |
899 CDir* files = NULL; |
899 CDir* files = NULL; |
900 CDir* directories = NULL; |
900 CDir* directories = NULL; |
901 |
901 |
902 User::LeaveIfError( iFs.GetDir( driveAndPath, KEntryAttNormal, ESortByName, files, directories ) ); |
902 User::LeaveIfError( iFs.GetDir( driveAndPath, KEntryAttNormal, ESortByName, files, directories ) ); |
903 |
|
904 CleanupStack :: PushL (files); |
|
905 CleanupStack :: PushL (directories); |
|
906 |
903 |
907 TInt count = files->Count(); |
904 TInt count = files->Count(); |
908 for( TInt i = 0; i < count; i++ ) |
905 for( TInt i = 0; i < count; i++ ) |
909 { |
906 { |
910 const TEntry file = (*files)[ i ]; |
907 const TEntry file = (*files)[ i ]; |
938 } |
935 } |
939 } |
936 } |
940 } |
937 } |
941 CleanupStack::PopAndDestroy( fullName ); |
938 CleanupStack::PopAndDestroy( fullName ); |
942 } |
939 } |
943 |
940 CleanupStack::PopAndDestroy( nameWithDrive ); |
944 CleanupStack :: PopAndDestroy (directories); |
|
945 CleanupStack :: PopAndDestroy (files); |
|
946 CleanupStack :: PopAndDestroy (nameWithDrive); |
|
947 } |
941 } |
948 TRACE( T_LIT( "CBSStorageManager::CleanupFileL end") ); |
942 TRACE( T_LIT( "CBSStorageManager::CleanupFileL end") ); |
949 } |
943 } |
950 |
944 |
951 // --------------------------------------------------------------------------- |
945 // --------------------------------------------------------------------------- |