Constructors
constructor
- new PublicFile(time): PublicFile
Methods
asNode
- asNode(): PublicNode
free
- free(): void
Returns void
getContent
- getContent(store): Promise<any>
Returns Promise<any>
getId
- getId(): string
Returns string
getRawContentCid
- getRawContentCid(store): Promise<any>
Returns Promise<any>
getSize
- getSize(store): Promise<any>
Returns Promise<any>
metadata
- metadata(): any
Returns any
previousCids
- previousCids(): Uint8Array[]
Returns Uint8Array[]
readAt
- readAt(byte_offset, limit, store): Promise<any>
Parameters
- byte_offset: number
- limit: undefined | number
- store: BlockStore
Returns Promise<any>
setContent
- setContent(time, content, store): Promise<any>
Returns Promise<any>
store
- store(store): Promise<any>
Returns Promise<any>
Static
load
- load(cid, store): Promise<any>
Returns Promise<any>
A file in a WNFS public file system.