WARNING: The [sjs-3] engine was deprecated, use [sjs-4] instead.

File.prototype.bucketId()

Returns the BucketId a file is located in.

Syntax

file.bucketId() uint8

Description

A file may contain other files, its children, which are stored in buckets. There are 256 buckets, with BucketIds from 0 to 255.

This method tells which bucket the file is placed in.

Examples

Basic example.

Place a file in bucket 3, then print the bucketId.