ttfiles
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Abstract
Virtual
Directory
Abstract
Virtual
Root
Directory
Virtual
Directory
VirtualFS
Virtual
Root
Directory
constructor
concrete
Directory
created
directory
extra
icon
id
last
Modified
mime
Type
name
path
size
url
virtual
Root
mime
Type
add
Directory
add
File
add
OnChange
Listener
copy
delete
dispatch
Change
Event
get
Children
get
File
get
Mounted
Data
mount
mount
To
move
read
readJSON
read
Text
remove
OnChange
Listener
rename
search
to
String
unmount
unmount
From
write
Mount
Point
Data
Type parameters
T
:
Directory
Hierarchy
AbstractVirtualRootDirectory
<
T
>
VirtualRootDirectory
Implements
File
Index
Constructors
constructor
Properties
concrete
Directory
Accessors
created
directory
extra
icon
id
last
Modified
mime
Type
name
path
size
url
virtual
Root
mime
Type
Methods
add
Directory
add
File
add
OnChange
Listener
copy
delete
dispatch
Change
Event
get
Children
get
File
get
Mounted
Data
mount
mount
To
move
read
readJSON
read
Text
remove
OnChange
Listener
rename
search
to
String
unmount
unmount
From
write
Constructors
constructor
new
Virtual
Root
Directory
(
concreteDirectory
:
T
, mounts
:
object
, mountPoint
:
File
, parent
:
AbstractVirtualDirectory
<
Directory
>
)
:
VirtualRootDirectory
Parameters
concreteDirectory:
T
mounts:
object
[
id:
string
]:
MountPointData
mountPoint:
File
parent:
AbstractVirtualDirectory
<
Directory
>
Returns
VirtualRootDirectory
Properties
concrete
Directory
concrete
Directory
:
T
Accessors
created
created
:
directory
directory
:
extra
extra
:
icon
icon
:
id
id
:
last
Modified
last
Modified
:
mime
Type
mime
Type
:
name
name
:
path
path
:
size
size
:
url
url
:
virtual
Root
virtual
Root
:
Static
mime
Type
mime
Type
:
Methods
add
Directory
add
Directory
(
name
:
string
)
:
Promise
<
VirtualDirectory
<
Directory
>
>
Parameters
name:
string
Returns
Promise
<
VirtualDirectory
<
Directory
>
>
add
File
add
File
(
fileData
:
ArrayBuffer
, filename
:
string
, mimeType
:
string
)
:
Promise
<
File
>
Parameters
fileData:
ArrayBuffer
filename:
string
mimeType:
string
Returns
Promise
<
File
>
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
>
get
Mounted
Data
get
Mounted
Data
(
id
:
string
)
:
MountPointData
|
null
Parameters
id:
string
Returns
MountPointData
|
null
mount
mount
(
file
:
Directory
)
:
void
Parameters
file:
Directory
Returns
void
mount
To
mount
To
(
mountPoint
:
AbstractVirtualDirectory
<
Directory
>
, file
:
Directory
)
:
void
Parameters
mountPoint:
AbstractVirtualDirectory
<
Directory
>
file:
Directory
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
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
unmount
unmount
(
)
:
void
Returns
void
unmount
From
unmount
From
(
mountPoint
:
File
)
:
void
Parameters
mountPoint:
File
Returns
void
write
write
(
data
:
ArrayBuffer
)
:
Promise
<
ArrayBuffer
>
Parameters
data:
ArrayBuffer
Returns
Promise
<
ArrayBuffer
>
Generated using
TypeDoc