<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - Scaaning the files - Comments</title>
 <link>http://www.newlc.com/forum/scaaning-files</link>
 <description>Comments for &quot;Scaaning the files&quot;</description>
 <language>en</language>
<item>
 <title>Re: Scaaning the files</title>
 <link>http://www.newlc.com/forum/scaaning-files#comment-44102</link>
 <description>&lt;p&gt;here i am giving the Sample code &lt;/p&gt;

&lt;p&gt;                  // aPath of the Directory for which you are looking &lt;br /&gt;
                   CDirScan* DirScan = CDirScan::NewLC(aFs);&lt;br /&gt;
                      DirScan-&gt;SetScanDataL(aPath,KEntryAttDir|KEntryAttMatchExclusive,ESortNone, CDirScan::EScanDownTree);&lt;br /&gt;
	        while(true)&lt;br /&gt;
		  {&lt;br /&gt;
	      CDir* dir = NULL;&lt;br /&gt;
	      TRAPD(error, DirScan-&gt;NextL(dir));&lt;br /&gt;
	   &lt;br /&gt;
                 if (error || !dir)&lt;br /&gt;
	    	   break;&lt;br /&gt;
 		&lt;br /&gt;
                delete dir;&lt;br /&gt;
                 scanFiles(RFs,aDir,_L(*.mp3)); &lt;br /&gt;
	        };&lt;/p&gt;

&lt;p&gt;              scanFiles(RFs aFs,aDir,_L(*.mp3))&lt;br /&gt;
             {&lt;br /&gt;
              TParse parse;&lt;br /&gt;
               parse.Set(aWild, &amp;aDir, NULL);&lt;br /&gt;
             TPtrC spec(parse.FullName());&lt;br /&gt;
             TFindFile FindFile(aFs);&lt;br /&gt;
             CDir* dir;&lt;br /&gt;
             if(!FindFile.FindWildByPath(parse.FullName(), NULL, dir));&lt;br /&gt;
               {&lt;br /&gt;
                // Files Path      &lt;br /&gt;
                }&lt;br /&gt;
              }&lt;br /&gt;
for better Understanding just go through the Documentation for CDirScan and TFindFile &lt;/p&gt;

&lt;p&gt;Regards &lt;br /&gt;
Praveen&lt;/p&gt;</description>
 <pubDate>Thu, 24 Jan 2008 11:31:11 +0100</pubDate>
 <dc:creator>praveenvlm</dc:creator>
 <guid isPermaLink="false">comment 44102 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Scaaning the files</title>
 <link>http://www.newlc.com/forum/scaaning-files#comment-44103</link>
 <description>&lt;p&gt;Oh nice, didn&#039;t know about the CDirScan, looks useful &lt;img src=&quot;/sites/all/modules/smileys/packs/example/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; /&gt;&lt;/p&gt;</description>
 <pubDate>Thu, 24 Jan 2008 11:30:34 +0100</pubDate>
 <dc:creator>alh</dc:creator>
 <guid isPermaLink="false">comment 44103 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Scaaning the files</title>
 <link>http://www.newlc.com/forum/scaaning-files#comment-44101</link>
 <description>&lt;p&gt;You can use the RDir class, to list all files and directories of a drive.&lt;br /&gt;
Then use RDir recursively for every directory you find, to list all files in it, and then go through the list to see if any of the listed files are mp3s.&lt;/p&gt;

&lt;p&gt;TFindFile is probably useful for you too &lt;img src=&quot;/sites/all/modules/smileys/packs/example/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; /&gt;&lt;/p&gt;</description>
 <pubDate>Thu, 24 Jan 2008 11:29:31 +0100</pubDate>
 <dc:creator>alh</dc:creator>
 <guid isPermaLink="false">comment 44101 at http://www.newlc.com</guid>
</item>
<item>
 <title>Scaaning the files</title>
 <link>http://www.newlc.com/forum/scaaning-files</link>
 <description>&lt;p&gt;when creating a mp3 player,what should i do if i want to scan the whole mobile to get the files of mp3  present in different locations in the mobile??&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/forum/scaaning-files&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/forum/scaaning-files#comments</comments>
 <category domain="http://www.newlc.com/forums/multimedia">Multimedia</category>
 <pubDate>Thu, 24 Jan 2008 10:55:21 +0100</pubDate>
 <dc:creator>swetha_t</dc:creator>
 <guid isPermaLink="false">20079 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
