Library API
⬅ Back to Guides
Preparing search index...
common.index
VirtualFileStore
Interface VirtualFileStore
Universal interface for asynchronous encrypted virtual file operations.
interface
VirtualFileStore
{
delete
(
path
:
string
)
:
Promise
<
boolean
>
;
exists
(
path
:
string
)
:
Promise
<
boolean
>
;
list
(
dir
?:
string
)
:
Promise
<
string
[]
>
;
read
(
path
:
string
)
:
Promise
<
string
|
null
>
;
readBuffer
(
path
:
string
)
:
Promise
<
Uint8Array
<
ArrayBufferLike
>
|
null
>
;
readJSON
<
T
=
any
>
(
path
:
string
,
fallback
?:
T
)
:
Promise
<
T
|
null
>
;
write
(
path
:
string
,
content
:
string
|
BufferSource
|
Uint8Array
<
ArrayBufferLike
>
,
)
:
Promise
<
void
>
;
writeJSON
(
path
:
string
,
data
:
any
)
:
Promise
<
void
>
;
}
Index
Methods
delete
exists
list
read
read
Buffer
read
JSON
write
write
JSON
Methods
delete
delete
(
path
:
string
)
:
Promise
<
boolean
>
Parameters
path
:
string
Returns
Promise
<
boolean
>
exists
exists
(
path
:
string
)
:
Promise
<
boolean
>
Parameters
path
:
string
Returns
Promise
<
boolean
>
list
list
(
dir
?:
string
)
:
Promise
<
string
[]
>
Parameters
Optional
dir
:
string
Returns
Promise
<
string
[]
>
read
read
(
path
:
string
)
:
Promise
<
string
|
null
>
Parameters
path
:
string
Returns
Promise
<
string
|
null
>
read
Buffer
readBuffer
(
path
:
string
)
:
Promise
<
Uint8Array
<
ArrayBufferLike
>
|
null
>
Parameters
path
:
string
Returns
Promise
<
Uint8Array
<
ArrayBufferLike
>
|
null
>
read
JSON
readJSON
<
T
=
any
>
(
path
:
string
,
fallback
?:
T
)
:
Promise
<
T
|
null
>
Type Parameters
T
=
any
Parameters
path
:
string
Optional
fallback
:
T
Returns
Promise
<
T
|
null
>
write
write
(
path
:
string
,
content
:
string
|
BufferSource
|
Uint8Array
<
ArrayBufferLike
>
,
)
:
Promise
<
void
>
Parameters
path
:
string
content
:
string
|
BufferSource
|
Uint8Array
<
ArrayBufferLike
>
Returns
Promise
<
void
>
write
JSON
writeJSON
(
path
:
string
,
data
:
any
)
:
Promise
<
void
>
Parameters
path
:
string
data
:
any
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
delete
exists
list
read
read
Buffer
read
JSON
write
write
JSON
⬅ Back to Guides
Library API
Loading...
Universal interface for asynchronous encrypted virtual file operations.