A good file search alogorithm

Hi

I need to do a search on the entire filesystem of my pc and list the mp3 files that are found....can anyone suggest a way to do it.

File.listRoots will give the file system roots.The main doubt i have is in deciding whether to create a file object for every directory that is encountered. Is there a better way to search....also performance is a concern...

pls help

[394 byte] By [arya_18a] at [2007-9-28 16:23:19]
# 1
I would have thought a simple recursive search would work. Use java.io.File.listFiles.John
DrJohnFostera at 2007-7-12 13:32:11 > top of Java-index,Other Topics,Algorithms...
# 2
I can't really think of any other sensible way to do it. Also, I would use the version of listFiles that takes a FileFilter as its argument.
DrClapa at 2007-7-12 13:32:11 > top of Java-index,Other Topics,Algorithms...