Skip to content

@halone/sdk / FileEntry

Interface: FileEntry ​

Paths are absolute and /-separated; what they name is the host's business.

Properties ​

kind ​

ts
kind: FileKind;

mimeType ​

ts
mimeType: string | null;

modifiedAt ​

ts
modifiedAt: number;

Milliseconds since the epoch.


name ​

ts
name: string;

path ​

ts
path: string;

sizeBytes ​

ts
sizeBytes: number;

thumbnailUrl ​

ts
thumbnailUrl: string | null;

A small JPEG of a picture or a frame of a video, where the host can make one; null otherwise.


url ​

ts
url: string | null;

Where a system app can fetch the bytes, with range requests; null for a directory.

Released under the MIT License.