If you want Cocoa, check out enumeration in NSFileManager; if you want C/C++, check out iteration in Files.h.
On 01/06/2011 12:54 PM, "Abhinav Tyagi" <abhityag...@gmail.com> wrote: >Hi All, > >Although this querry may seem simple to you but since i dont have any idea >about it, >i am clueless as how to approach. > >Problem: Scanning the disc for media files. As the media files can be >present anywhere >in the disc, searching whole disc by enumerating the directory listings >will >be very tedious >i guess (like combining ls and grep in the terminal). > >1) I need an efficient approach to solve this problem using Cocoa or C++. >(very Important) >2) How will check a file if its a valid media file or data file. Like we >can >have ".dat" files that > are video files but data files can also have ".dat" extension. not >much >significant. Is there > api that can tell whether a file is media file or not? (not soooo >important). > >Thanks in advance for your help. > > > >Abhinav Kumar Tyagi >www.verizon.com >_______________________________________________ > >Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > >Please do not post admin requests or moderator comments to the list. >Contact the moderators at cocoa-dev-admins(at)lists.apple.com > >Help/Unsubscribe/Update your Subscription: >http://lists.apple.com/mailman/options/cocoa-dev/garywade%40desisoftsystem >s.com > >This email sent to garyw...@desisoftsystems.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com