Search
Preparing search index...
The search index is not available
makit
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"fs/memfs-impl"
MemoryFileSystem
Class MemoryFileSystem
Hierarchy
MemoryFileSystem
Implements
FileSystem
Index
Properties
fs
mtimes
now
Methods
exists
exists
Sync
mkdir
mkdir
Sync
read
File
read
File
Sync
stat
stat
Sync
unlink
unlink
Sync
utimes
utimes
Sync
write
File
write
File
Sync
Properties
Private
fs
fs
:
MemoryFileSystem
= new MemoryFileSystemImpl()
Private
mtimes
mtimes
:
Map
<
string
,
TimeStamp
>
= new Map()
Private
now
now
:
number
= 10000
Methods
exists
exists
(
path
:
string
)
:
Promise
<
boolean
>
Parameters
path:
string
Returns
Promise
<
boolean
>
exists
Sync
exists
Sync
(
path
:
string
)
:
boolean
Parameters
path:
string
Returns
boolean
mkdir
mkdir
(
path
:
string
, options
?:
MakeDirectoryOptions
)
:
Promise
<
void
>
Parameters
path:
string
Default value
options:
MakeDirectoryOptions
= {}
Returns
Promise
<
void
>
mkdir
Sync
mkdir
Sync
(
path
:
string
, options
?:
MakeDirectoryOptions
)
:
void
Parameters
path:
string
Default value
options:
MakeDirectoryOptions
= {}
Returns
void
read
File
read
File
(
path
:
string
, encoding
:
undefined
|
string
)
:
any
Parameters
path:
string
Optional
encoding:
undefined
|
string
Returns
any
read
File
Sync
read
File
Sync
(
path
:
string
, encoding
:
undefined
|
string
)
:
any
Parameters
path:
string
Optional
encoding:
undefined
|
string
Returns
any
stat
stat
(
path
:
string
)
:
Promise
<
Stats
>
Parameters
path:
string
Returns
Promise
<
Stats
>
stat
Sync
stat
Sync
(
path
:
string
)
:
Stats
Parameters
path:
string
Returns
Stats
unlink
unlink
(
path
:
string
)
:
Promise
<
void
>
Parameters
path:
string
Returns
Promise
<
void
>
unlink
Sync
unlink
Sync
(
path
:
string
)
:
void
Parameters
path:
string
Returns
void
utimes
utimes
(
path
:
string
, atime
:
number
, mtime
:
number
)
:
Promise
<
void
>
Parameters
path:
string
atime:
number
mtime:
number
Returns
Promise
<
void
>
utimes
Sync
utimes
Sync
(
path
:
string
, atime
:
number
, mtime
:
number
)
:
void
Parameters
path:
string
atime:
number
mtime:
number
Returns
void
write
File
write
File
(
path
:
string
, data
:
string
)
:
Promise
<
void
>
Parameters
path:
string
data:
string
Returns
Promise
<
void
>
write
File
Sync
write
File
Sync
(
path
:
string
, data
:
any
)
:
void
Parameters
path:
string
data:
any
Returns
void
Globals
"fs/memfs-
impl"
Memory
File
System
fs
mtimes
now
exists
exists
Sync
mkdir
mkdir
Sync
read
File
read
File
Sync
stat
stat
Sync
unlink
unlink
Sync
utimes
utimes
Sync
write
File
write
File
Sync
Generated using
TypeDoc