Skip to content

Commit bbb5537

Browse files
yoshi-automationBenjamin E. Coe
authored andcommitted
fix(docs): stop redirecting reference docs to anchor, add new sample to README
1 parent b8faf3c commit bbb5537

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ has instructions for running the samples.
107107
| Notifications | [source code](https://github.com/googleapis/nodejs-storage/blob/master/samples/notifications.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/notifications.js,samples/README.md) |
108108
| Quickstart | [source code](https://github.com/googleapis/nodejs-storage/blob/master/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) |
109109
| Requester Pays | [source code](https://github.com/googleapis/nodejs-storage/blob/master/samples/requesterPays.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/requesterPays.js,samples/README.md) |
110+
| Upload a directory to a bucket. | [source code](https://github.com/googleapis/nodejs-storage/blob/master/samples/uploadDirectory.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/uploadDirectory.js,samples/README.md) |
110111

111112

112113

@@ -142,12 +143,10 @@ Apache Version 2.0
142143

143144
See [LICENSE](https://github.com/googleapis/nodejs-storage/blob/master/LICENSE)
144145

145-
[client-docs]: https://googleapis.dev/nodejs/storage/latest#reference
146+
[client-docs]: https://googleapis.dev/nodejs/storage/latest
146147
[product-docs]: https://cloud.google.com/storage
147148
[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
148149
[projects]: https://console.cloud.google.com/project
149150
[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
150151
[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=storage-api.googleapis.com
151152
[auth]: https://cloud.google.com/docs/authentication/getting-started
152-
153-
<a name="reference"></a>

samples/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ objects to users via direct download.
3434
* [Notifications](#notifications)
3535
* [Quickstart](#quickstart)
3636
* [Requester Pays](#requester-pays)
37+
* [Upload a directory to a bucket.](#upload-a-directory-to-a-bucket.)
3738

3839
## Before you begin
3940

@@ -325,6 +326,25 @@ __Usage:__
325326
`node requesterPays.js`
326327

327328

329+
-----
330+
331+
332+
333+
334+
### Upload a directory to a bucket.
335+
336+
Uploads full hierarchy of a local directory to a bucket.
337+
338+
View the [source code](https://github.com/googleapis/nodejs-storage/blob/master/samples/uploadDirectory.js).
339+
340+
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/uploadDirectory.js,samples/README.md)
341+
342+
__Usage:__
343+
344+
345+
`node files.js upload-directory <bucketName> <directoryPath>`
346+
347+
328348

329349

330350

synth.metadata

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"updateTime": "2019-08-14T00:53:10.619189Z",
2+
"updateTime": "2019-08-28T11:21:44.803161Z",
33
"sources": [
44
{
55
"template": {

0 commit comments

Comments
 (0)