File.prototype.allBuckets()

Return all buckets that are either defined or used, plus the default bucket.

Syntax

file.allBuckets() []Bucket

Description

Return all buckets, including the default bucket, all defined buckets and all undefined but used buckets in that order.

Examples

The default bucket is always returned.

Undefined but used buckets are returned.

Defined buckets are returned even if not used.

The default bucket is always returned first, followed by defined buckets, followed by not defined but used buckets.