OpenFairyGUI API
Preparing search index...
backend/src
BackendFileSystem
Interface BackendFileSystem
interface
BackendFileSystem
{
dirname
(
filePath
:
string
)
:
string
;
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
<
BackendFileStat
>
;
unlink
(
filePath
:
string
)
:
Promise
<
void
>
;
writeFile
(
filePath
:
string
,
content
:
string
)
:
Promise
<
void
>
;
writeFileRaw
(
filePath
:
string
,
data
:
Uint8Array
)
:
Promise
<
void
>
;
}
Index
Methods
dirname
join
mkdir
open
Exclusive
readdir
read
File
read
File
Raw
resolve
resolve
Path
stat
unlink
write
File
write
File
Raw
Methods
dirname
dirname
(
filePath
:
string
)
:
string
Parameters
filePath
:
string
Returns
string
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
>
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
>
>
resolve
resolve
(
...
paths
:
string
[]
)
:
string
Parameters
...
paths
:
string
[]
Returns
string
resolve
Path
resolvePath
(
filePath
:
string
)
:
Promise
<
string
>
Parameters
filePath
:
string
Returns
Promise
<
string
>
stat
stat
(
filePath
:
string
)
:
Promise
<
BackendFileStat
>
Parameters
filePath
:
string
Returns
Promise
<
BackendFileStat
>
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
join
mkdir
open
Exclusive
readdir
read
File
read
File
Raw
resolve
resolve
Path
stat
unlink
write
File
write
File
Raw
OpenFairyGUI API
Loading...