Skip to content
This repository has been archived by the owner on May 16, 2018. It is now read-only.

Amazon s3 Stream Service opendir lists entire bucket when passed a sub directory. #560

Open
kkruit opened this issue May 14, 2015 · 1 comment

Comments

@kkruit
Copy link

kkruit commented May 14, 2015

After I've registered the s3 stream wrapper, when I call:

opendir('s3://bucket/part/of/a/key')

I get all (first 1000 anyway) objects in a bucket regardless of "path". Also because s3's default response is only 1000 objects I can't find the files I want after the fact. I suggest the stream wrapper use the prefix option when fetching the list via opendir. I have done this for my own uses so if this seems like a desired feature I can make a pull request.

@mhujer
Copy link
Contributor

mhujer commented Oct 18, 2015

@kkruit Zend_Service_Amazon wasn't updated for a while, so I recommend using the latest version of the PHP SDK maintained by Amazon - https://github.com/aws/aws-sdk-php

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants