FileInfo
Extends
Constructors
new FileInfo()
new FileInfo(
dart
):FileInfo
Parameters
Parameter | Type |
---|---|
dart | any |
Returns
Overrides
Constructs
FileInfo
Source
Properties
Property | Modifier | Type | Inherited from |
---|---|---|---|
dart | public | any | Entity .dart |
Accessors
author
get
author():User
Who created entity *
Returns
Source
connection
get
connection():DataConnection
Returns
Source
createdOn
get
createdOn():Dayjs
Time when entity was created *
Returns
Dayjs
Source
data
get
data():Uint8Array
Returns
Uint8Array
Source
extension
get
extension():string
Returns file extension, i.e. csv
Returns
string
Source
fileName
get
fileName():string
Returns file name, i.e. dmv_offices.csv
Returns
string
Source
friendlyName
get
friendlyName():string
Entity friendly name
set
friendlyName(x
):void
Parameters
Parameter | Type |
---|---|
x | string |
Returns
string
Source
fullPath
get
fullPath():string
Returns full path, i.e. Demo:TestJobs:Files:DemoFiles/geo/dmv_offices.csv
Returns
string
Source
id
get
id():string
Entity ID (GUID)
set
id(x
):void
Parameters
Parameter | Type |
---|---|
x | string |
Returns
string
Source
isDirectory
get
isDirectory():boolean
Checks if directory
Returns
boolean
Source
isFile
get
isFile():boolean
Checks if file
Returns
boolean
Source
name
get
name():string
Entity short name
set
name(x
):void
Parameters
Parameter | Type |
---|---|
x | string |
Returns
string
Source
nqName
get
nqName():string
Entity full-qualified name
Returns
string
Source
path
get
path():string
Returns path, i.e. geo/dmv_offices.csv
Returns
string
Source
updatedOn
get
updatedOn():null
|Dayjs
Time when entity was updated *
Returns
null
| Dayjs
Source
url
get
url():string
Returns file URL
Returns
string
Source
Methods
getProperties()
getProperties():
Promise
<object
>
Gets entity properties
Returns
Promise
<object
>
Inherited from
Source
hasTag()
hasTag(
tag
):boolean
Parameters
Parameter | Type |
---|---|
tag | string |
Returns
boolean
Inherited from
Source
newId()
newId():
void
Generates new id for this entity.
Returns
void
Inherited from
Source
readAsBytes()
readAsBytes():
Promise
<Uint8Array
>
Returns
Promise
<Uint8Array
>
Source
readAsString()
readAsString():
Promise
<string
>
Returns
Promise
<string
>
Source
setProperties()
setProperties(
props
):Promise
<any
>
Sets entity properties
Parameters
Parameter | Type |
---|---|
props | object |
Returns
Promise
<any
>
Inherited from
Source
tag()
tag(
tag
):boolean
Adds a specified tag
Parameters
Parameter | Type |
---|---|
tag | string |
Returns
boolean
Inherited from
Source
toString()
toString():
string
Returns a string representing the object
Returns
string
Inherited from
Source
unTag()
unTag(
tag
):boolean
Removes a specified tag
Parameters
Parameter | Type |
---|---|
tag | string |
Returns
boolean
Inherited from
Source
fromBytes()
static
fromBytes(path
,data
):FileInfo
Parameters
Parameter | Type |
---|---|
path | string |
data | Uint8Array |
Returns
Source
fromString()
static
fromString(path
,data
):FileInfo
Parameters
Parameter | Type |
---|---|
path | string |
data | string |