ttfiles
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Mock
Worker
TestFS
constructor
created
extra
icon
id
name
parent
directory
last
Modified
mime
Type
size
url
mime
Type
add
Child
add
Directory
add
Directory
Sync
add
File
add
File
Sync
add
OnChange
Listener
copy
delete
delete
Sync
dispatch
Change
Event
get
Children
get
Children
Sync
get
File
move
name
Exists
on
Child
Change
read
readJSON
read
Text
remove
Child
remove
OnChange
Listener
rename
rename
Sync
search
search
Sync
to
String
write
on
Process
Exit
Hierarchy
MemoryDirectory
TestFS
Implements
File
Index
Constructors
constructor
Properties
created
extra
icon
id
name
parent
Accessors
directory
last
Modified
mime
Type
size
url
mime
Type
Methods
add
Child
add
Directory
add
Directory
Sync
add
File
add
File
Sync
add
OnChange
Listener
copy
delete
delete
Sync
dispatch
Change
Event
get
Children
get
Children
Sync
get
File
move
name
Exists
on
Child
Change
read
readJSON
read
Text
remove
Child
remove
OnChange
Listener
rename
rename
Sync
search
search
Sync
to
String
write
Constructors
constructor
new
TestFS
(
)
:
TestFS
Returns
TestFS
Properties
created
created
:
Date
= new Date()
extra
extra
:
object
Type declaration
icon
icon
:
null
= null
id
id
:
string
name
name
:
string
Protected
parent
parent
:
MemoryDirectory
|
null
Accessors
directory
directory
:
last
Modified
last
Modified
:
mime
Type
mime
Type
:
size
size
:
url
url
:
Static
mime
Type
mime
Type
:
Methods
add
Child
add
Child
(
memoryFile
:
MemoryFile
|
MemoryDirectory
)
:
void
Parameters
memoryFile:
MemoryFile
|
MemoryDirectory
Returns
void
add
Directory
add
Directory
(
name
:
string
)
:
Promise
<
MemoryDirectory
>
Parameters
name:
string
Returns
Promise
<
MemoryDirectory
>
add
Directory
Sync
add
Directory
Sync
(
name
:
string
)
:
MemoryDirectory
Parameters
name:
string
Returns
MemoryDirectory
add
File
add
File
(
fileData
:
ArrayBuffer
, filename
:
string
, mimeType
:
string
)
:
Promise
<
MemoryFile
>
Parameters
fileData:
ArrayBuffer
filename:
string
mimeType:
string
Returns
Promise
<
MemoryFile
>
add
File
Sync
add
File
Sync
(
fileData
:
ArrayBuffer
, filename
:
string
, mimeType
:
string
)
:
MemoryFile
Parameters
fileData:
ArrayBuffer
filename:
string
mimeType:
string
Returns
MemoryFile
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
get
Children
get
Children
(
)
:
Promise
<
File
[]
>
Returns
Promise
<
File
[]
>
get
Children
Sync
get
Children
Sync
(
)
:
File
[]
Returns
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
>
name
Exists
name
Exists
(
name
:
string
)
:
boolean
Parameters
name:
string
Returns
boolean
on
Child
Change
on
Child
Change
(
)
:
void
Returns
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
Child
remove
Child
(
memoryFile
:
MemoryFile
|
MemoryDirectory
)
:
void
Parameters
memoryFile:
MemoryFile
|
MemoryDirectory
Returns
void
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
search
search
(
query
:
string
)
:
Promise
<
SearchResult
[]
>
Parameters
query:
string
Returns
Promise
<
SearchResult
[]
>
search
Sync
search
Sync
(
query
:
string
)
:
SearchResult
[]
Parameters
query:
string
Returns
SearchResult
[]
to
String
to
String
(
)
:
string
Returns
string
write
write
(
data
:
ArrayBuffer
)
:
Promise
<
ArrayBuffer
>
Parameters
data:
ArrayBuffer
Returns
Promise
<
ArrayBuffer
>
Generated using
TypeDoc