ttfiles
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Add
File
Copy
File
Delete
File
Mk
Dir
File
Mock
Backend
Directory
Mock
Backend
File
Mock
Remote
Requester
Move
File
Rename
File
Search
File
constructor
created
extra
file
Data
icon
id
last
Modified
mime
Type
name
parent
directory
size
url
add
OnChange
Listener
copy
delete
delete
Sync
dispatch
Change
Event
move
read
readJSON
read
Sync
read
Text
remove
OnChange
Listener
rename
rename
Sync
to
String
write
write
Sync
Hierarchy
MockBackendFile
SearchFile
Implements
File
Index
Constructors
constructor
Properties
created
extra
file
Data
icon
id
last
Modified
mime
Type
name
parent
Accessors
directory
size
url
Methods
add
OnChange
Listener
copy
delete
delete
Sync
dispatch
Change
Event
move
read
readJSON
read
Sync
read
Text
remove
OnChange
Listener
rename
rename
Sync
to
String
write
write
Sync
Constructors
constructor
new
Search
File
(
parent
:
MockBackendDirectory
, name
:
string
, mimeType
:
undefined
|
string
, data
:
ArrayBuffer
)
:
SearchFile
Parameters
parent:
MockBackendDirectory
name:
string
Optional
mimeType:
undefined
|
string
Optional
data:
ArrayBuffer
Returns
SearchFile
Properties
created
created
:
Date
= new Date()
extra
extra
:
object
Type declaration
Protected
file
Data
file
Data
:
ArrayBuffer
icon
icon
:
null
= null
id
id
:
string
last
Modified
last
Modified
:
Date
mime
Type
mime
Type
:
string
name
name
:
string
Protected
parent
parent
:
MockBackendDirectory
Accessors
directory
directory
:
size
size
:
url
url
:
Methods
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
>
delete
Sync
delete
Sync
(
)
:
void
Returns
void
dispatch
Change
Event
dispatch
Change
Event
(
)
:
void
Returns
void
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
Sync
read
Sync
(
)
:
ArrayBuffer
Returns
ArrayBuffer
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
>
rename
Sync
rename
Sync
(
newName
:
string
)
:
void
Parameters
newName:
string
Returns
void
to
String
to
String
(
)
:
string
Returns
string
write
write
(
data
:
ArrayBuffer
)
:
Promise
<
ArrayBuffer
>
Parameters
data:
ArrayBuffer
Returns
Promise
<
ArrayBuffer
>
write
Sync
write
Sync
(
data
:
ArrayBuffer
)
:
ArrayBuffer
Parameters
data:
ArrayBuffer
Returns
ArrayBuffer
Generated using
TypeDoc