Skip to main content

FileInfo

Extends

Constructors

new FileInfo()

new FileInfo(dart): FileInfo

Parameters

ParameterType
dartany

Returns

FileInfo

Overrides

Entity . constructor

Constructs

FileInfo

Source

src/entities.ts:897

Properties

PropertyModifierTypeInherited from
dartpublicanyEntity.dart

Accessors

author

get author(): User

Who created entity *

Returns

User

Source

src/entities.ts:125


connection

get connection(): DataConnection

Returns

DataConnection

Source

src/entities.ts:901


createdOn

get createdOn(): Dayjs

Time when entity was created *

Returns

Dayjs

Source

src/entities.ts:116


data

get data(): Uint8Array

Returns

Uint8Array

Source

src/entities.ts:937


entityType

get entityType(): string

Entity type name *

Returns

string

Source

src/entities.ts:128


extension

get extension(): string

Returns file extension, i.e. csv

Returns

string

Source

src/entities.ts:913


fileName

get fileName(): string

Returns file name, i.e. dmv_offices.csv

Returns

string

Source

src/entities.ts:916


friendlyName

get friendlyName(): string

Entity friendly name

set friendlyName(x): void

Parameters

ParameterType
xstring

Returns

string

Source

src/entities.ts:102


fullPath

get fullPath(): string

Returns full path, i.e. Demo:TestJobs:Files:DemoFiles/geo/dmv_offices.csv

Returns

string

Source

src/entities.ts:907


id

get id(): string

Entity ID (GUID)

set id(x): void

Parameters

ParameterType
xstring

Returns

string

Source

src/entities.ts:94


isDirectory

get isDirectory(): boolean

Checks if directory

Returns

boolean

Source

src/entities.ts:925


isFile

get isFile(): boolean

Checks if file

Returns

boolean

Source

src/entities.ts:922


name

get name(): string

Entity short name

set name(x): void

Parameters

ParameterType
xstring

Returns

string

Source

src/entities.ts:106


nqName

get nqName(): string

Entity full-qualified name

Returns

string

Source

src/entities.ts:110


path

get path(): string

Returns path, i.e. geo/dmv_offices.csv

Returns

string

Source

src/entities.ts:904


updatedOn

get updatedOn(): null | Dayjs

Time when entity was updated *

Returns

null | Dayjs

Source

src/entities.ts:927


url

get url(): string

Returns file URL

Returns

string

Source

src/entities.ts:919


viewPath

get viewPath(): string

Returns URL path, i.e. Demo.TestJobs.Files.DemoFiles/geo/dmv_offices.csv

Returns

string

Source

src/entities.ts:910

Methods

getProperties()

getProperties(): Promise<object>

Gets entity properties

Returns

Promise<object>

Inherited from

Entity . getProperties

Source

src/entities.ts:131


hasTag()

hasTag(tag): boolean

Parameters

ParameterType
tagstring

Returns

boolean

Inherited from

Entity . hasTag

Source

src/entities.ts:143


newId()

newId(): void

Generates new id for this entity.

Returns

void

Inherited from

Entity . newId

Source

src/entities.ts:98


readAsBytes()

readAsBytes(): Promise<Uint8Array>

Returns

Promise<Uint8Array>

Source

src/entities.ts:944


readAsString()

readAsString(): Promise<string>

Returns

Promise<string>

Source

src/entities.ts:939


setProperties()

setProperties(props): Promise<any>

Sets entity properties

Parameters

ParameterType
propsobject

Returns

Promise<any>

Inherited from

Entity . setProperties

Source

src/entities.ts:136


tag()

tag(tag): boolean

Adds a specified tag

Parameters

ParameterType
tagstring

Returns

boolean

Inherited from

Entity . tag

Source

src/entities.ts:146


toString()

toString(): string

Returns a string representing the object

Returns

string

Inherited from

Entity . toString

Source

src/entities.ts:141


unTag()

unTag(tag): boolean

Removes a specified tag

Parameters

ParameterType
tagstring

Returns

boolean

Inherited from

Entity . unTag

Source

src/entities.ts:149


fromBytes()

static fromBytes(path, data): FileInfo

Parameters

ParameterType
pathstring
dataUint8Array

Returns

FileInfo

Source

src/entities.ts:948


fromString()

static fromString(path, data): FileInfo

Parameters

ParameterType
pathstring
datastring

Returns

FileInfo

Source

src/entities.ts:954