knplabs/Gaufrette — pull request #19 by cdfre (2011-10-11 17:17:57+00:00)
Title: FTP Adapter Improvements, listDirectory-Public Method, key & listDirectory Caching with CacheAdapter

I've made some additions and changes for my needs.

1.)
The FTP Adapter did'nt provide a Method to get the Directories in the Filesystem and it did not fetch all files recursively as keys.
So I modified the keys & listDirectory methods. Also i implemented the listDirectory Methods in the CacheAdapter and the Filesystem, to use it independet from the FTP-Adapter. Of course it's only available in this Adapter for now, so there is a fallback with the use of the existing key-Methods.

2.)
I added the Transfer-Mode to the constructor of the FTP Adapter. I need Binary Transfer in my project.

3.)
I added Caching for keys and the new listDirectory-Method with a array serialization. Also i improved the needsReload, so that it only checks the source if the time to live has ended.

4.)
Some corrections in the docu / readme

I think these additions should be a nice to have for everyone.
Therefore I'm submitting this, my first, Pull Request.