getSize

Get the size in bytes of a TextFile stored in a BrowserPod Pod's virtual filesystem, returned as a promise.

class TextFile {
async getSize(): Promise<int>;
}

Parameters

getSize does not have any parameters.

Returns

getSize returns a Promise which is resolved when the operation has succeeded. The promise resolves to the byte size of the file.

Was this page helpful?
Suggest changes