OpenFairyGUI API
Preparing search index...
backend/src
BackendAsyncStorageAdapter
Interface BackendAsyncStorageAdapter
interface
BackendAsyncStorageAdapter
{
dirname
?
(
filePath
:
string
)
:
string
;
exists
?
(
filePath
:
string
)
:
Promise
<
boolean
>
;
join
?
(
...
paths
:
string
[]
)
:
string
;
mkdir
(
dirPath
:
string
,
options
?:
{
recursive
?:
boolean
}
)
:
Promise
<
void
>
;
openExclusive
?
(
filePath
:
string
)
:
Promise
<
BackendFileHandle
>
;
readdir
(
dirPath
:
string
)
:
Promise
<
string
[]
>
;
readFile
(
filePath
:
string
)
:
Promise
<
string
>
;
readFileRaw
(
filePath
:
string
)
:
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
;
resolve
?
(
...
paths
:
string
[]
)
:
string
;
resolvePath
?
(
filePath
:
string
)
:
Promise
<
string
>
;
stat
?
(
filePath
:
string
)
:
Promise
<
BackendStorageStatLike
>
;
unlink
(
filePath
:
string
)
:
Promise
<
void
>
;
writeFile
(
filePath
:
string
,
content
:
string
)
:
Promise
<
void
>
;
writeFileRaw
(
filePath
:
string
,
data
:
Uint8Array
)
:
Promise
<
void
>
;
}
Index
Methods
dirname?
exists?
join?
mkdir
open
Exclusive?
readdir
read
File
read
File
Raw
resolve?
resolve
Path?
stat?
unlink
write
File
write
File
Raw
Methods
Optional
dirname
dirname
?
(
filePath
:
string
)
:
string
Parameters
filePath
:
string
Returns
string
Optional
exists
exists
?
(
filePath
:
string
)
:
Promise
<
boolean
>
Parameters
filePath
:
string
Returns
Promise
<
boolean
>
Optional
join
join
?
(
...
paths
:
string
[]
)
:
string
Parameters
...
paths
:
string
[]
Returns
string
mkdir
mkdir
(
dirPath
:
string
,
options
?:
{
recursive
?:
boolean
}
)
:
Promise
<
void
>
Parameters
dirPath
:
string
Optional
options
:
{
recursive
?:
boolean
}
Returns
Promise
<
void
>
Optional
open
Exclusive
openExclusive
?
(
filePath
:
string
)
:
Promise
<
BackendFileHandle
>
Parameters
filePath
:
string
Returns
Promise
<
BackendFileHandle
>
readdir
readdir
(
dirPath
:
string
)
:
Promise
<
string
[]
>
Parameters
dirPath
:
string
Returns
Promise
<
string
[]
>
read
File
readFile
(
filePath
:
string
)
:
Promise
<
string
>
Parameters
filePath
:
string
Returns
Promise
<
string
>
read
File
Raw
readFileRaw
(
filePath
:
string
)
:
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
Parameters
filePath
:
string
Returns
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
Optional
resolve
resolve
?
(
...
paths
:
string
[]
)
:
string
Parameters
...
paths
:
string
[]
Returns
string
Optional
resolve
Path
resolvePath
?
(
filePath
:
string
)
:
Promise
<
string
>
Parameters
filePath
:
string
Returns
Promise
<
string
>
Optional
stat
stat
?
(
filePath
:
string
)
:
Promise
<
BackendStorageStatLike
>
Parameters
filePath
:
string
Returns
Promise
<
BackendStorageStatLike
>
unlink
unlink
(
filePath
:
string
)
:
Promise
<
void
>
Parameters
filePath
:
string
Returns
Promise
<
void
>
write
File
writeFile
(
filePath
:
string
,
content
:
string
)
:
Promise
<
void
>
Parameters
filePath
:
string
content
:
string
Returns
Promise
<
void
>
write
File
Raw
writeFileRaw
(
filePath
:
string
,
data
:
Uint8Array
)
:
Promise
<
void
>
Parameters
filePath
:
string
data
:
Uint8Array
Returns
Promise
<
void
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
dirname
exists
join
mkdir
open
Exclusive
readdir
read
File
read
File
Raw
resolve
resolve
Path
stat
unlink
write
File
write
File
Raw
OpenFairyGUI API
Loading...