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:689

Properties

PropertyModifierTypeInherited from
dartpublicanyEntity.dart

Accessors

author

get author(): User

Who created entity *

Returns

User

Source

src/entities.ts:108


connection

get connection(): DataConnection

Returns

DataConnection

Source

src/entities.ts:693


createdOn

get createdOn(): Dayjs

Time when entity was created *

Returns

Dayjs

Source

src/entities.ts:99


data

get data(): Uint8Array

Returns

Uint8Array

Source

src/entities.ts:726


extension

get extension(): string

Returns file extension, i.e. csv

Returns

string

Source

src/entities.ts:702


fileName

get fileName(): string

Returns file name, i.e. dmv_offices.csv

Returns

string

Source

src/entities.ts:705


friendlyName

get friendlyName(): string

Entity friendly name

set friendlyName(x): void

Parameters

ParameterType
xstring

Returns

string

Source

src/entities.ts:85


fullPath

get fullPath(): string

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

Returns

string

Source

src/entities.ts:699


id

get id(): string

Entity ID (GUID)

set id(x): void

Parameters

ParameterType
xstring

Returns

string

Source

src/entities.ts:77


isDirectory

get isDirectory(): boolean

Checks if directory

Returns

boolean

Source

src/entities.ts:714


isFile

get isFile(): boolean

Checks if file

Returns

boolean

Source

src/entities.ts:711


name

get name(): string

Entity short name

set name(x): void

Parameters

ParameterType
xstring

Returns

string

Source

src/entities.ts:89


nqName

get nqName(): string

Entity full-qualified name

Returns

string

Source

src/entities.ts:93


path

get path(): string

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

Returns

string

Source

src/entities.ts:696


updatedOn

get updatedOn(): null | Dayjs

Time when entity was updated *

Returns

null | Dayjs

Source

src/entities.ts:716


url

get url(): string

Returns file URL

Returns

string

Source

src/entities.ts:708

Methods

getProperties()

getProperties(): Promise<object>

Gets entity properties

Returns

Promise<object>

Inherited from

Entity . getProperties

Source

src/entities.ts:111


hasTag()

hasTag(tag): boolean

Parameters

ParameterType
tagstring

Returns

boolean

Inherited from

Entity . hasTag

Source

src/entities.ts:123


newId()

newId(): void

Generates new id for this entity.

Returns

void

Inherited from

Entity . newId

Source

src/entities.ts:81


readAsBytes()

readAsBytes(): Promise<Uint8Array>

Returns

Promise<Uint8Array>

Source

src/entities.ts:733


readAsString()

readAsString(): Promise<string>

Returns

Promise<string>

Source

src/entities.ts:728


setProperties()

setProperties(props): Promise<any>

Sets entity properties

Parameters

ParameterType
propsobject

Returns

Promise<any>

Inherited from

Entity . setProperties

Source

src/entities.ts:116


tag()

tag(tag): boolean

Adds a specified tag

Parameters

ParameterType
tagstring

Returns

boolean

Inherited from

Entity . tag

Source

src/entities.ts:126


toString()

toString(): string

Returns a string representing the object

Returns

string

Inherited from

Entity . toString

Source

src/entities.ts:121


unTag()

unTag(tag): boolean

Removes a specified tag

Parameters

ParameterType
tagstring

Returns

boolean

Inherited from

Entity . unTag

Source

src/entities.ts:129


fromBytes()

static fromBytes(path, data): FileInfo

Parameters

ParameterType
pathstring
dataUint8Array

Returns

FileInfo

Source

src/entities.ts:737


fromString()

static fromString(path, data): FileInfo

Parameters

ParameterType
pathstring
datastring

Returns

FileInfo

Source

src/entities.ts:743