Skip to main content

Class: Resource

Defined in: src/common/web/data/entities/resource/Resource.ts:18

A single file or folder resource.

Param​

The complete name (path) of the resource.

Param​

The name (w/o path) of the resource.

Param​

The type of the resource (folder or file).

Param​

The size of the resource; for folders, this is the size of all its contents.

Param​

The MIME type of the resource.

Constructors​

Constructor​

new Resource(filename, basename, type, size, mimeType): Resource

Defined in: src/common/web/data/entities/resource/Resource.ts:26

Parameters​

filename​

string

basename​

string

type​

ResourceType

size​

number = 0

mimeType​

string = ""

Returns​

Resource

Properties​

basename​

readonly basename: string

Defined in: src/common/web/data/entities/resource/Resource.ts:20


filename​

readonly filename: string

Defined in: src/common/web/data/entities/resource/Resource.ts:19


mime_type​

readonly mime_type: string

Defined in: src/common/web/data/entities/resource/Resource.ts:24


size​

size: number

Defined in: src/common/web/data/entities/resource/Resource.ts:23


type​

readonly type: ResourceType

Defined in: src/common/web/data/entities/resource/Resource.ts:21