That will work to get the files in a single directory, but not in any sub-directories within it.
It's simple enough to write a script that will recurse through a directory structure and give you a list of the files (or whatever you need). Make a function which takes a directory as a parameter, reads that directory like linuxman wrote, and calls itself for each subdirectory it finds. Let me know if you need more of an explanation.
Keegan