-
Notifications
You must be signed in to change notification settings - Fork 438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check if stream is seekable when downloading object to path #193
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
I signed it! |
CLAs look good, thanks! |
Thanks for the PR! I'll leave the question of the method name to @dwsupplee as he's the lead on our Storage implementation, but if you don't mind, would you please add a test to You can capture and assert against the output using You should be fine copying most of the body of If you're not familiar with PHPUnit or have any questions please let us know. One of us would be happy to assist. |
Thanks for the PR - |
@jdpedrie @dwsupplee please take a look at #199. I believe it introduces a more flexible approach in retrieving StorageObject contents. |
I can do it as well :) |
The destination path can also be
php://output
, then the file is streamed directly to output. However, that is not seekable and an exception is thrown.Perhaps the method name is not accurate anymore then - something like
downloadToPath
might be more appropriate.