ttfiles
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Database
File
Store
Local
Storage
Directory
constructor
_last
Modified
_name
created
extra
icon
int
Id
listener
Map
directory
id
last
Modified
mime
Type
name
size
url
mime
Type
add
Directory
add
File
add
OnChange
Listener
copy
delete
dispatch
Change
Event
get
Children
get
File
move
read
readJSON
read
Text
remove
OnChange
Listener
rename
search
to
String
write
Local
Storage
File
Local
Storage
Root
File
Data
Un
Saved
File
Data
database
indexed
DbCursor
Request
ToPromise
indexed
DbRequest
ToPromise
Hierarchy
Directory
LocalStorageDirectory
LocalStorageRoot
Implements
File
Index
Constructors
constructor
Properties
_last
Modified
_name
created
extra
icon
int
Id
listener
Map
Accessors
directory
id
last
Modified
mime
Type
name
size
url
mime
Type
Methods
add
Directory
add
File
add
OnChange
Listener
copy
delete
dispatch
Change
Event
get
Children
get
File
move
read
readJSON
read
Text
remove
OnChange
Listener
rename
search
to
String
write
Constructors
constructor
new
Local
Storage
Directory
(
databaseData
:
FileData
)
:
LocalStorageDirectory
Parameters
databaseData:
FileData
Returns
LocalStorageDirectory
Properties
Protected
_last
Modified
_last
Modified
:
Date
Protected
_name
_name
:
string
created
created
:
Date
extra
extra
:
object
Type declaration
icon
icon
:
null
= null
int
Id
int
Id
:
number
Protected
listener
Map
listener
Map
:
Map
<
function
,
function
>
= new Map()
Accessors
directory
directory
:
id
id
:
last
Modified
last
Modified
:
mime
Type
mime
Type
:
name
name
:
size
size
:
url
url
:
Static
mime
Type
mime
Type
:
Methods
add
Directory
add
Directory
(
name
:
string
)
:
Promise
<
LocalStorageDirectory
>
Parameters
name:
string
Returns
Promise
<
LocalStorageDirectory
>
add
File
add
File
(
file
:
ArrayBuffer
, name
:
string
, mimeType
:
string
)
:
Promise
<
LocalStorageFile
>
Parameters
file:
ArrayBuffer
name:
string
mimeType:
string
Returns
Promise
<
LocalStorageFile
>
add
OnChange
Listener
add
OnChange
Listener
(
listener
:
function
)
:
void
Parameters
listener:
function
(
file
:
File
)
:
void
Parameters
file:
File
Returns
void
Returns
void
copy
copy
(
targetDirectory
:
Directory
)
:
Promise
<
void
>
Parameters
targetDirectory:
Directory
Returns
Promise
<
void
>
delete
delete
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
dispatch
Change
Event
dispatch
Change
Event
(
)
:
void
Returns
void
get
Children
get
Children
(
)
:
Promise
<
File
[]
>
Returns
Promise
<
File
[]
>
get
File
get
File
(
pathArray
:
string
[]
)
:
Promise
<
File
>
Parameters
pathArray:
string
[]
Returns
Promise
<
File
>
The file object located at the given path.
move
move
(
targetDirectory
:
Directory
)
:
Promise
<
void
>
Parameters
targetDirectory:
Directory
Returns
Promise
<
void
>
read
read
(
)
:
Promise
<
ArrayBuffer
>
Returns
Promise
<
ArrayBuffer
>
readJSON
readJSON
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
read
Text
read
Text
(
)
:
Promise
<
string
>
Returns
Promise
<
string
>
remove
OnChange
Listener
remove
OnChange
Listener
(
listener
:
function
)
:
void
Parameters
listener:
function
(
file
:
File
)
:
void
Parameters
file:
File
Returns
void
Returns
void
rename
rename
(
newName
:
string
)
:
Promise
<
void
>
Parameters
newName:
string
Returns
Promise
<
void
>
search
search
(
query
:
string
)
:
Promise
<
SearchResult
[]
>
Parameters
query:
string
Returns
Promise
<
SearchResult
[]
>
to
String
to
String
(
)
:
string
Returns
string
write
write
(
data
:
ArrayBuffer
)
:
Promise
<
ArrayBuffer
>
Parameters
data:
ArrayBuffer
Returns
Promise
<
ArrayBuffer
>
Generated using
TypeDoc