FTP Command question

I would like to use a Rabbit core to emulate a piece of equipment for debug purposes.
Can the LS command be modified to respond to wild cards ie �ls *.prg� and would it be able to handle 400 small files on a miniSD card?
Is the source code for the libraries available?