KnpLabs/Gaufrette — pull request #69 by calumbrodie (2012-05-25 01:02:37+00:00)
Title: PR to resolve issue when reading files via FTP

This fixes the same issue addressed here (https://github.com/KnpLabs/Gaufrette/pull/53) which the author of that PR seems to have abandoned - but in a different way.

I kept the basename() function on both sides of the if statement because the absolute file path on the FTP server and the path being requested via the adapter could be different (when your starting directory for your adapter is not the root).