Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Scanning folders & subfolders in Symbian devices

From Wiki
Jump to: navigation, search
Article Metadata
Created: bharatuppal (23 Jul 2007)
Updated: mayur_24 (29 Aug 2012)
Last edited: hamishwillee (03 Sep 2012)
Location: f32file.h 
Link against: efsrv.lib
TBuf<256> defaultImagesPath(_L("c:\\data\\images\\"));
CDir* presentFolder = NULL;
TFileName filteredImages( defaultImagesPath );
// valid Directory in the file system tree
// this version will only work with UI apps as we are using the CEikonEnv
CDirScan* scanner = CDirScan::NewLC(iEikonEnv->FsSession());
scanner->SetScanDataL(filteredImages, KEntryAttNormal, ESortByDate,CDirScan::EScanDownTree);
while (presentFolder)
for(TInt index(0); index < presentFolder->Count() ;index++)
TEntry presentEntry = (*presentFolder)[index];
if( !presentEntry.IsDir() )
/* presentEntry points to content or file inside the folder
so do any operation */

delete presentFolder;

Version Hint

Windows Phone: [[Category:Windows Phone]]
[[Category:Windows Phone 7.5]]
[[Category:Windows Phone 8]]

Nokia Asha: [[Category:Nokia Asha]]
[[Category:Nokia Asha Platform 1.0]]

Series 40: [[Category:Series 40]]
[[Category:Series 40 1st Edition]] [[Category:Series 40 2nd Edition]]
[[Category:Series 40 3rd Edition (initial release)]] [[Category:Series 40 3rd Edition FP1]] [[Category:Series 40 3rd Edition FP2]]
[[Category:Series 40 5th Edition (initial release)]] [[Category:Series 40 5th Edition FP1]]
[[Category:Series 40 6th Edition (initial release)]] [[Category:Series 40 6th Edition FP1]] [[Category:Series 40 Developer Platform 1.0]] [[Category:Series 40 Developer Platform 1.1]] [[Category:Series 40 Developer Platform 2.0]]

Symbian: [[Category:Symbian]]
[[Category:S60 1st Edition]] [[Category:S60 2nd Edition (initial release)]] [[Category:S60 2nd Edition FP1]] [[Category:S60 2nd Edition FP2]] [[Category:S60 2nd Edition FP3]]
[[Category:S60 3rd Edition (initial release)]] [[Category:S60 3rd Edition FP1]] [[Category:S60 3rd Edition FP2]]
[[Category:S60 5th Edition]]
[[Category:Symbian^3]] [[Category:Symbian Anna]] [[Category:Nokia Belle]]

This page was last modified on 3 September 2012, at 04:39.
39 page views in the last 30 days.