×
Namespaces

Variants
Actions
Revision as of 07:28, 26 July 2012 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Reading Directory Contents using RDir

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Article
Created: vasant21 (31 May 2007)
Last edited: hamishwillee (26 Jul 2012)
#include <f32file.h>
Link against: efsrv.lib
RDir myDir;
TInt err;
User::LeaveIfError(myDir.Open(aFs, KDirName, KEntryAttNormal|KEntryAttDir));
TEntry currentEntry;
while( true )
{
err=myDir.Read(currentEntry);
if (err)
{
// No more entries, or some other error
break;
}
 
// Do Something with this entry //
}
myDir.Close()
 
// EOF signifies no more entries to read
if (err != KErrEof)
{
User::LeaveIfError(err);
}

Links

See also: Directory Monitoring

This page was last modified on 26 July 2012, at 07:28.
38 page views in the last 30 days.
×