Home > @hapoosjs/api-buckets > Buckets > setVersioning
Turn on/off versioning of files in a bucket
Signature:
setVersioning(bucketName: string, flag: boolean): Promise<void>;
Parameter | Type | Description |
---|---|---|
bucketName | string | Bucket name |
flag | boolean | true to turn file versioning on, false to disable it |
Returns:
Promise<void>