diff -r 43e37759235e -r 51a74ef9ed63 Symbian3/SDK/Source/GUID-B563AC07-A54B-50E2-A3B2-821E8BC2C863.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-B563AC07-A54B-50E2-A3B2-821E8BC2C863.dita Wed Mar 31 11:11:55 2010 +0100 @@ -0,0 +1,33 @@ + + + + + +Using +CDirScanThis topic describes about setting up the scan and +parsing path. +
Setting up the scan using SetScanDataL() + +

Taking the above directory structure, if SetScanData() is +called as follows:

_LIT(KDirText,"C:\\TopDir\\"); +... +SetScanDataL(KDirText,KEntryAttDir,ESortByName|EAscending,CDirScan::EScanDownTree); +...

then the directories are scanned, by repeatedly calling CDirScan::NextL() in +the following order: TopDir, Dir1, Dir2, Dir3, Dir4, Dir5, Dir6, Dir7. +The sort key of EAscending means that multiple directories +within the same parent directory are scanned in ascending alphabetic or numeric +order.

If the scan direction is upwards, i.e.CDirScan::EScanUpTree, +the directories are scanned in the order: Dir2, Dir4, Dir3, Dir1, Dir6, Dir7, Dir5, TopDir.

+
Parsing paths using FullPath()

If the full path +of the entry currently being scanned is:

C:\Topdir\Middledir\Bottomdir\

and +the top level directory in the scan as passed to SetScanDataL() is:

C:\Topdir\

then:

    +
  • AbbreviatedPath() returns \Middledir\

  • +
  • FullPath() returns C:\Topdir\Middledir\.

  • +
+
\ No newline at end of file