https://cdn-learn.adafruit.com/downloads/pdf/adafruit-wave-shield-audio-shield-for-arduino.pdf
adafruit-wave-shield-audio-shield-for-arduino.pdf
.
.
.
Looking for files in a directory
OK now that you've initialized the card, we perform a recursive list of all files found. This is useful for debugging and ALSO shows how you can navigate the file system. To start, pass a directory object (like root) to lsR() which will do the following:
1. Read a file from the directory. The files are read in the order they are copied into the directory, not alphabetical order!
2. If the directories are the special links "." (current directory) or ".." (upper directory) it ignores them and goes to step 1 again.
3. It prints out spaces to create a nicely formatted output. Each level of directory gets 2 spaces.
4. It prints out the name of the file in 8.3 format.
5. If it is a subdirectory, it makes a new object and opens up the subdirectory. Then it prints out all of the files in that new directory.
6. It continues to step 1 until there are no more files to be read.