- Source:
Methods
(async, static) get(bucket, file) → {Promise.<Object>}
gets custom metadata for the bucket or file/dir in the bucket
Parameters:
Name | Type | Description |
---|---|---|
bucket |
string | gcs storage bucket name |
file |
string | file or dir name |
- Source:
Returns:
metadata.metadata - file or dir metadata
- Type
- Promise.<Object>
(async, static) set(bucket, file, metadata) → {Promise.<Object>}
sets the custom file or dir metadata
Parameters:
Name | Type | Description |
---|---|---|
bucket |
string | gcs storage bucket name |
file |
string | file or dir name |
metadata |
object | custom metadata object |
- Source:
Returns:
meta.metadata - new custom metadata
- Type
- Promise.<Object>