File.prototype.bucket()

Return a defined bucket.

Syntax

file.bucket(bucketName string) Bucket

Parameters

bucketName string

Name of the bucket.

Description

Return a defined bucket. Throws an error if the bucket is undefined.

Examples

Selecting a bucket that is defined.

Selecting a bucket that is not defined.