OpenFairyGUI API
Preparing search index...
functions/src
RestoreFileSystem
Interface RestoreFileSystem
interface
RestoreFileSystem
{
dirname
(
path
:
string
)
:
string
;
exists
(
path
:
string
)
:
Promise
<
boolean
>
;
isFile
(
path
:
string
)
:
Promise
<
boolean
>
;
join
(
...
paths
:
string
[]
)
:
string
;
mkdir
(
path
:
string
)
:
Promise
<
void
>
;
readdir
(
path
:
string
)
:
Promise
<
string
[]
>
;
readFile
(
path
:
string
)
:
Promise
<
string
>
;
readFileRaw
(
path
:
string
)
:
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
;
rename
(
from
:
string
,
to
:
string
)
:
Promise
<
void
>
;
resolvePath
(
path
:
string
)
:
string
|
Promise
<
string
>
;
rm
(
path
:
string
,
options
?:
{
force
?:
boolean
;
recursive
?:
boolean
}
,
)
:
Promise
<
void
>
;
writeFile
(
path
:
string
,
content
:
string
)
:
Promise
<
void
>
;
writeFileRaw
(
path
:
string
,
data
:
Uint8Array
)
:
Promise
<
void
>
;
}
Hierarchy
Pick
<
FileSystem
,
|
"readFile"
|
"readFileRaw"
|
"writeFile"
|
"writeFileRaw"
|
"mkdir"
|
"exists"
|
"join"
|
"dirname"
,
>
RestoreFileSystem
Index
Methods
dirname
exists
is
File
join
mkdir
readdir
read
File
read
File
Raw
rename
resolve
Path
rm
write
File
write
File
Raw
Methods
dirname
dirname
(
path
:
string
)
:
string
Parameters
path
:
string
Returns
string
exists
exists
(
path
:
string
)
:
Promise
<
boolean
>
Parameters
path
:
string
Returns
Promise
<
boolean
>
is
File
isFile
(
path
:
string
)
:
Promise
<
boolean
>
Parameters
path
:
string
Returns
Promise
<
boolean
>
join
join
(
...
paths
:
string
[]
)
:
string
Parameters
...
paths
:
string
[]
Returns
string
mkdir
mkdir
(
path
:
string
)
:
Promise
<
void
>
Parameters
path
:
string
Returns
Promise
<
void
>
readdir
readdir
(
path
:
string
)
:
Promise
<
string
[]
>
Parameters
path
:
string
Returns
Promise
<
string
[]
>
read
File
readFile
(
path
:
string
)
:
Promise
<
string
>
Parameters
path
:
string
Returns
Promise
<
string
>
read
File
Raw
readFileRaw
(
path
:
string
)
:
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
Parameters
path
:
string
Returns
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
rename
rename
(
from
:
string
,
to
:
string
)
:
Promise
<
void
>
Parameters
from
:
string
to
:
string
Returns
Promise
<
void
>
resolve
Path
resolvePath
(
path
:
string
)
:
string
|
Promise
<
string
>
Parameters
path
:
string
Returns
string
|
Promise
<
string
>
rm
rm
(
path
:
string
,
options
?:
{
force
?:
boolean
;
recursive
?:
boolean
}
,
)
:
Promise
<
void
>
Parameters
path
:
string
Optional
options
:
{
force
?:
boolean
;
recursive
?:
boolean
}
Returns
Promise
<
void
>
write
File
writeFile
(
path
:
string
,
content
:
string
)
:
Promise
<
void
>
Parameters
path
:
string
content
:
string
Returns
Promise
<
void
>
write
File
Raw
writeFileRaw
(
path
:
string
,
data
:
Uint8Array
)
:
Promise
<
void
>
Parameters
path
:
string
data
:
Uint8Array
Returns
Promise
<
void
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
dirname
exists
is
File
join
mkdir
readdir
read
File
read
File
Raw
rename
resolve
Path
rm
write
File
write
File
Raw
OpenFairyGUI API
Loading...