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/table-info.ts:65

Properties

PropertyModifierTypeInherited from
dartpublicanyEntity.dart

Accessors

author

get author(): any

Who created entity *

Returns

any

Source

src/entities/entity.ts:59


connection

get connection(): DataConnection

Returns

DataConnection

Source

src/entities/table-info.ts:69


createdOn

get createdOn(): Dayjs

Time when entity was created *

Returns

Dayjs

Source

src/entities/entity.ts:50


data

get data(): Uint8Array

Returns

Uint8Array

Source

src/entities/table-info.ts:105


entityType

get entityType(): string

Entity type name *

Returns

string

Source

src/entities/entity.ts:66


extension

get extension(): string

Returns file extension, i.e. csv

Returns

string

Source

src/entities/table-info.ts:81


fileName

get fileName(): string

Returns file name, i.e. dmv_offices.csv

Returns

string

Source

src/entities/table-info.ts:84


friendlyName

get friendlyName(): string

Entity friendly name

set friendlyName(x): void

Parameters

ParameterType
xstring

Returns

string

Source

src/entities/entity.ts:36


fullPath

get fullPath(): string

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

Returns

string

Source

src/entities/table-info.ts:75


id

get id(): string

Entity ID (GUID)

set id(x): void

Parameters

ParameterType
xstring

Returns

string

Source

src/entities/entity.ts:28


isDirectory

get isDirectory(): boolean

Checks if directory

Returns

boolean

Source

src/entities/table-info.ts:93


isFile

get isFile(): boolean

Checks if file

Returns

boolean

Source

src/entities/table-info.ts:90


name

get name(): string

Entity short name

set name(x): void

Parameters

ParameterType
xstring

Returns

string

Source

src/entities/entity.ts:40


nqName

get nqName(): string

Entity full-qualified name

Returns

string

Source

src/entities/entity.ts:44


path

get path(): string

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

Returns

string

Source

src/entities/table-info.ts:72


updatedOn

get updatedOn(): null | Dayjs

Time when entity was updated *

Returns

null | Dayjs

Source

src/entities/table-info.ts:95


url

get url(): string

Returns file URL

Returns

string

Source

src/entities/table-info.ts:87


viewPath

get viewPath(): string

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

Returns

string

Source

src/entities/table-info.ts:78

Methods

getProperties()

getProperties(): Promise<object>

Gets entity properties

Returns

Promise<object>

Inherited from

Entity . getProperties

Source

src/entities/entity.ts:69


hasTag()

hasTag(tag): boolean

Parameters

ParameterType
tagstring

Returns

boolean

Inherited from

Entity . hasTag

Source

src/entities/entity.ts:81


newId()

newId(): void

Generates new id for this entity.

Returns

void

Inherited from

Entity . newId

Source

src/entities/entity.ts:32


readAsBytes()

readAsBytes(): Promise<Uint8Array>

Returns

Promise<Uint8Array>

Source

src/entities/table-info.ts:112


readAsString()

readAsString(): Promise<string>

Returns

Promise<string>

Source

src/entities/table-info.ts:107


setProperties()

setProperties(props): Promise<any>

Sets entity properties

Parameters

ParameterType
propsobject

Returns

Promise<any>

Inherited from

Entity . setProperties

Source

src/entities/entity.ts:74


tag()

tag(tag): boolean

Adds a specified tag

Parameters

ParameterType
tagstring

Returns

boolean

Inherited from

Entity . tag

Source

src/entities/entity.ts:84


toString()

toString(): string

Returns a string representing the object

Returns

string

Inherited from

Entity . toString

Source

src/entities/entity.ts:79


unTag()

unTag(tag): boolean

Removes a specified tag

Parameters

ParameterType
tagstring

Returns

boolean

Inherited from

Entity . unTag

Source

src/entities/entity.ts:87


fromBytes()

static fromBytes(path, data): FileInfo

Parameters

ParameterType
pathstring
dataUint8Array

Returns

FileInfo

Source

src/entities/table-info.ts:116


fromString()

static fromString(path, data): FileInfo

Parameters

ParameterType
pathstring
datastring

Returns

FileInfo

Source

src/entities/table-info.ts:122