GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — storage: add download() method by stephenplusplus · Pull Request #381 · googleapis/google-cloud-node

Conversation

@stephenplusplus

@stephenplusplus stephenplusplus commented Feb 4, 2015

Copy link
Copy Markdown
Contributor

Fixes #367

Adds a download method to a File object:

// Getting the contents of a file.
file.download(function(err, contents) {})
file.download({ start: 0, end: 100 }, function(err, contents) {});

// Writing the file to a local destination
file.download({ destination: '/Users/stephen/file.txt' }, function(err) {});
file.download({ start: 0, end: 100, destination: '/Users/stephen/file.txt' }, function(err) {});

This method just blankets file.createReadStream(options), so the options passed to download are passed up to createReadStream.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

panstav and nicolabortignon reacted with thumbs up emoji
All reactions
  • 👍 2 reactions
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 4, 2015
@stephenplusplus
stephenplusplus force-pushed the spp--storage-download branch from 799d4bf to baae93f Compare February 4, 2015 19:49
@stephenplusplus stephenplusplus mentioned this pull request Feb 4, 2015
add download() method #367
Closed
ryanseys
ryanseys reviewed Feb 5, 2015
View reviewed changes
Comment thread lib/storage/file.js

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ryanseys ryanseys mentioned this pull request Feb 5, 2015
Release 0.13.0? #382
Closed
@stephenplusplus
stephenplusplus force-pushed the spp--storage-download branch from baae93f to 51d71c1 Compare February 5, 2015 20:17
@ryanseys

ryanseys commented Feb 9, 2015

Copy link
Copy Markdown
Contributor

Will require a rebase

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus
storage: add download() method
132150c
@stephenplusplus
stephenplusplus force-pushed the spp--storage-download branch from 47b69b3 to 132150c Compare February 9, 2015 19:34
@stephenplusplus

stephenplusplus commented Feb 9, 2015

Copy link
Copy Markdown
Contributor Author

Using the new once module + rebased.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

ryanseys added a commit that referenced this pull request Feb 9, 2015
@ryanseys
Merge pull request #381 from stephenplusplus/spp--storage-download
b52b28b
storage: add download() method
@ryanseys
ryanseys merged commit b52b28b into googleapis:master Feb 9, 2015
@ryanseys

ryanseys commented Feb 9, 2015

Copy link
Copy Markdown
Contributor

LGTM! :) 🚢

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chingor13 pushed a commit that referenced this pull request Aug 22, 2022
@yoshi-automation
feat: added support OutputResult in ExportAssetsResponse. docs: updat…
42b9d2c
…ed existing docs. (#381)

Clients receive detailed OutputResult in ExportAssetsResponse.

PiperOrigin-RevId: 326582222

Source-Author: Google APIs <[email protected]>
Source-Date: Thu Aug 13 20:45:57 2020 -0700
Source-Repo: googleapis/googleapis
Source-Sha: 3a54e988edcbdef1e47c6ac19d3074a87214f667
Source-Link: googleapis/googleapis@3a54e98
@sofisl sofisl mentioned this pull request Sep 15, 2022
migrate code from googleapis/nodejs-redis #3360
Merged
4 tasks
sofisl pushed a commit that referenced this pull request Sep 15, 2022
@renovate-bot
chore(deps): update dependency null-loader to v4 (#381)
8f179ab
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [null-loader](https://togithub.com/webpack-contrib/null-loader) | devDependencies | major | [`^3.0.0` -> `^4.0.0`](https://renovatebot.com/diffs/npm/null-loader/3.0.0/4.0.0) |

---

### Release Notes

<details>
<summary>webpack-contrib/null-loader</summary>

### [`v4.0.0`](https://togithub.com/webpack-contrib/null-loader/blob/master/CHANGELOG.md#&#8203;400-httpsgithubcomwebpack-contribnull-loadercomparev300v400-2020-04-15)

[Compare Source](https://togithub.com/webpack-contrib/null-loader/compare/v3.0.0...v4.0.0)

##### Bug Fixes

-   support `webpack@5`

##### ⚠ BREAKING CHANGES

-   minimum required Nodejs version is `10.13`

</details>

---

### Renovate configuration

:date: **Schedule**: "after 9am and before 3pm" (UTC).

:vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

:recycle: **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

:no_bell: **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/nodejs-redis).
@sofisl sofisl mentioned this pull request Oct 11, 2022
migrate code from googleapis/nodejs-language #3395
Merged
4 tasks
sofisl pushed a commit that referenced this pull request Oct 11, 2022
@release-please
chore: release 3.8.0 (#381)
8323de8
🤖 I have created a release \*beep\* \*boop\* 
---
## [3.8.0](https://www.github.com/googleapis/nodejs-language/compare/v3.7.2...v3.8.0) (2020-02-28)


### Features

* export protos in src/index.ts ([482fb10](https://www.github.com/googleapis/nodejs-language/commit/482fb10bc1d4f01bd3de38a0301cda2a2efb491d))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please).
@sofisl sofisl mentioned this pull request Oct 13, 2022
migrate code from googleapis/nodejs-phishing-protection #3406
Merged
4 tasks
sofisl pushed a commit that referenced this pull request Oct 13, 2022
@renovate-bot
chore(deps): update dependency @types/mocha to v9 (#381)
74c1d05
[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@types/mocha](https://togithub.com/DefinitelyTyped/DefinitelyTyped) | [`^8.0.0` -> `^9.0.0`](https://renovatebot.com/diffs/npm/@types%2fmocha/8.2.3/9.1.1) | [![age](https://badges.renovateapi.com/packages/npm/@types%2fmocha/9.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@types%2fmocha/9.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@types%2fmocha/9.1.1/compatibility-slim/8.2.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@types%2fmocha/9.1.1/confidence-slim/8.2.3)](https://docs.renovatebot.com/merge-confidence/) |

---

### Configuration

📅 **Schedule**: "after 9am and before 3pm" (UTC).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-phishing-protection).
sofisl pushed a commit that referenced this pull request Oct 13, 2022
@release-please @sofisl
chore: release 3.8.0 (#381)
124fbb5
🤖 I have created a release \*beep\* \*boop\* 
---
## [3.8.0](https://www.github.com/googleapis/nodejs-language/compare/v3.7.2...v3.8.0) (2020-02-28)


### Features

* export protos in src/index.ts ([482fb10](https://www.github.com/googleapis/nodejs-language/commit/482fb10bc1d4f01bd3de38a0301cda2a2efb491d))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please).
@sofisl sofisl mentioned this pull request Nov 10, 2022
migrate code from googleapis/nodejs-translate #3520
Merged
4 tasks
sofisl pushed a commit that referenced this pull request Nov 10, 2022
Benjamin E. Coe @JustinBeckwith
fix(docs): snippets are now replaced in jsdoc comments (#381)
4d8b647
@sofisl sofisl mentioned this pull request Nov 11, 2022
migrate code from googleapis/nodejs-cloud-container #3543
Merged
4 tasks
sofisl pushed a commit that referenced this pull request Nov 11, 2022
@yoshi-automation
build: track flaky tests for "nightly", add new secrets for tagging (#…
dbe7c2e
…381)

This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/a8ab5675-1982-4cf5-b9b7-36794038b975/targets

- [ ] To automatically regenerate this PR, check this box.

Source-Link: googleapis/synthtool@8cf6d28
@sofisl sofisl mentioned this pull request Nov 11, 2022
migrate code from googleapis/nodejs-iot #3544
Merged
This was referenced Jan 30, 2026
migrate code from googleapis/cloud-profiler-nodejs #7066
Closed
migrate code from googleapis/cloud-profiler-nodejs #7067
Closed
migrate code from googleapis/cloud-profiler-nodejs #7068
Closed
migrate code from googleapis/cloud-profiler-nodejs #7071
Closed
migrate code from googleapis/cloud-profiler-nodejs #7087
Merged
sofisl pushed a commit that referenced this pull request Feb 3, 2026
@steffnay @JustinBeckwith
docs(samples): adds queryParamsNamed and queryParamsPositional (#381)
57f04b5
@sofisl sofisl mentioned this pull request Feb 3, 2026
migrate code from googleapis/nodejs-bigquery #7111
Merged
4 tasks
GautamSharda pushed a commit that referenced this pull request Feb 5, 2026
Benjamin E. Coe @JustinBeckwith
fix(docs): link to reference docs section on googleapis.dev (#381)
93530d3
* fix(docs): reference docs should link to section of googleapis.dev with API reference

* fix(docs): make anchors work in jsdoc
@GautamSharda GautamSharda mentioned this pull request Feb 5, 2026
migrate code from googleapis/nodejs-error-reporting #7169
Closed
4 tasks
GautamSharda pushed a commit that referenced this pull request Feb 23, 2026
Benjamin E. Coe @JustinBeckwith
fix(docs): link to reference docs section on googleapis.dev (#381)
9d637c3
* fix(docs): reference docs should link to section of googleapis.dev with API reference

* fix(docs): make anchors work in jsdoc
@GautamSharda GautamSharda mentioned this pull request Feb 23, 2026
migrate code from googleapis/nodejs-error-reporting #7294
Closed
sofisl pushed a commit that referenced this pull request Feb 24, 2026
@schmidt-sebastian
Retiring assert.ok (#381)
6c8aef3
sofisl pushed a commit that referenced this pull request Feb 25, 2026
@JustinBeckwith
Improve types (#381)
4551095
GautamSharda pushed a commit that referenced this pull request Feb 25, 2026
@gcf-owl-bot
chore(nodejs): Add system-test/fixtures to .eslintignore (#381)
cf41fdf
* fix: Add `system-test/fixtures` to `.eslintignore`

* refactor: Use `**`

Source-Link: googleapis/synthtool@b7858ba
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:abc68a9bbf4fa808b25fa16d3b11141059dc757dbc34f024744bba36c200b40f

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
@GautamSharda GautamSharda mentioned this pull request Feb 25, 2026
migrate code from googleapis/nodejs-bigquery-storage #7306
Closed
4 tasks
GautamSharda pushed a commit that referenced this pull request Feb 26, 2026
Benjamin E. Coe @JustinBeckwith
fix(docs): link to reference docs section on googleapis.dev (#381)
f68771a
* fix(docs): reference docs should link to section of googleapis.dev with API reference

* fix(docs): make anchors work in jsdoc
@GautamSharda GautamSharda mentioned this pull request Feb 26, 2026
migrate code from googleapis/nodejs-error-reporting #7308
Merged
4 tasks
This was referenced Feb 26, 2026
migrate code from googleapis/nodejs-firestore #7311
Closed
migrate code from googleapis/nodejs-firestore #7410
Merged
@GautamSharda GautamSharda mentioned this pull request Mar 5, 2026
migrate code from googleapis/nodejs-bigquery-storage #7496
Merged
4 tasks
GautamSharda pushed a commit that referenced this pull request Mar 11, 2026
@jkwlui
fix(build): fix system key decryption (#381)
dac327d
@GautamSharda GautamSharda mentioned this pull request Mar 11, 2026
migrate code from googleapis/nodejs-pubsub #7592
Merged
4 tasks
GautamSharda pushed a commit that referenced this pull request Mar 12, 2026
@jkwlui @JustinBeckwith
build: Add docuploader credentials to node publish jobs (#381)
000bb87
@GautamSharda GautamSharda mentioned this pull request Mar 12, 2026
migrate code from googleapis/nodejs-common #7597
Merged
4 tasks
thiyaguk09 pushed a commit to thiyaguk09/google-cloud-node-fork that referenced this pull request Mar 18, 2026
@JustinBeckwith
Improve types (googleapis#381)
b6e7f2d
GautamSharda pushed a commit that referenced this pull request Mar 23, 2026
@JustinBeckwith
chore: update license file (#381)
594c365
@GautamSharda GautamSharda mentioned this pull request Mar 23, 2026
migrate code from googleapis/nodejs-bigtable #7852
Merged
4 tasks
GautamSharda pushed a commit that referenced this pull request Mar 25, 2026
@JustinBeckwith @GautamSharda
chore: update license file (#381)
ee7bc99
shivanee-p pushed a commit that referenced this pull request Mar 27, 2026
@JustinBeckwith @shivanee-p
chore: update license file (#381)
c4650f2
thiyaguk09 pushed a commit to thiyaguk09/google-cloud-node-fork that referenced this pull request May 5, 2026
@JustinBeckwith @thiyaguk09
chore: update license file (googleapis#381)
192d6b7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

add download() method

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@stephenplusplus @ryanseys @chuckjaz @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.