@@ -70,15 +70,13 @@ node_storage_manager allows you to switch between clients easily without reconfi
7070 /**
7171 * TODO(developer): Uncomment these variables before running the sample.
7272 */
73- // const bucketName = 'bucket-name';
73+ // let bucketName = 'bucket-name';
7474
75- async function download () {
76- // Creates the new bucket
77- await StorageInstance .download (' bucket' , ' file' , ' destination' );
78- console .log (` Bucket ${ bucketName} created.` );
79- }
80-
81- createBucket ().catch (console .error );
75+ async function download (bucketName ) {
76+ // Creates the new bucket
77+ await StorageInstance .download (bucketName, ' file' , ' destination' );
78+ console .log (` Bucket ${ bucketName} created.` );
79+ }
8280
8381```
8482
@@ -93,16 +91,14 @@ node_storage_manager allows you to switch between clients easily without reconfi
9391 /**
9492 * TODO(developer): Uncomment these variables before running the sample.
9593 */
96- // const bucketName = 'bucket-name';
94+ // let bucketName = 'bucket-name';
9795
98- async function download () {
96+ async function download (bucketName ) {
9997 // Creates the new bucket
100- await StorageInstance .download (' bucket ' , ' file' , ' destination' );
98+ await StorageInstance .download (bucketName , ' file' , ' destination' );
10199 console .log (` Bucket ${ bucketName} created.` );
102100 }
103101
104- createBucket ().catch (console .error );
105-
106102```
107103## Versioning
108104
0 commit comments