Methods
(async) create(valueopt)
Create file if it does not exist
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
value |
string |
<optional> |
''
|
Content to save in file |
(async) exists() → {boolean}
Check if all metadata and content exists on disk
Returns:
- Type
- boolean
(async) getLastchange() → {gpgfs_model.object_lastchange}
Last change metadata
Returns:
- Type
- gpgfs_model.object_lastchange
(async) getMetadata() → {gpgfs_model.object_meta}
File metadata
Returns:
- Type
- gpgfs_model.object_meta
(async) open()
Open and read metadata
(async) read() → {string}
Read content from file
Returns:
- Type
- string
(async) save(newContentopt)
Write content to file. Update metadata and re-index file in bucket index.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
newContent |
string |
<optional> |
this.content
|