KnpLabs/Gaufrette — pull request #51 by buschjost (2012-02-27 23:12:11+00:00)
Title: Filter prefix in keys

I added the possibility to (optionally) prefix-filter for keys. I know that this once was already part of Gaufrette and was removed. However, as long as the proposed filter interface not available I would really like to have this included again.

The current method of retrieving all keys is just not suitable if you have to deal with a few 10K objects in an S3 or other cloud bucket.

My change is compatible with the current keys() method as it just adds an optional parameter. All adapters for which I did not implement the prefix filtering will throw an appropriate exception if you try to filter with a prefix.