webtau API
Preparing search index...
provider
FsAdapter
Interface FsAdapter
interface
FsAdapter
{
copyFile
(
fromPath
:
string
,
toPath
:
string
)
:
Promise
<
void
>
;
exists
(
path
:
string
)
:
Promise
<
boolean
>
;
mkdir
(
path
:
string
,
options
?:
CreateDirOptions
)
:
Promise
<
void
>
;
readDir
(
path
:
string
,
options
?:
ReadDirOptions
)
:
Promise
<
FsEntry
[]
>
;
readFile
(
path
:
string
)
:
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
;
readTextFile
(
path
:
string
)
:
Promise
<
string
>
;
remove
(
path
:
string
,
options
?:
RemoveOptions
)
:
Promise
<
void
>
;
rename
(
oldPath
:
string
,
newPath
:
string
)
:
Promise
<
void
>
;
writeFile
(
path
:
string
,
contents
:
string
|
ArrayBuffer
|
number
[]
|
Uint8Array
<
ArrayBufferLike
>
,
)
:
Promise
<
void
>
;
writeTextFile
(
path
:
string
,
contents
:
string
)
:
Promise
<
void
>
;
}
Index
Methods
copy
File
exists
mkdir
read
Dir
read
File
read
Text
File
remove
rename
write
File
write
Text
File
Methods
copy
File
copyFile
(
fromPath
:
string
,
toPath
:
string
)
:
Promise
<
void
>
Parameters
fromPath
:
string
toPath
:
string
Returns
Promise
<
void
>
exists
exists
(
path
:
string
)
:
Promise
<
boolean
>
Parameters
path
:
string
Returns
Promise
<
boolean
>
mkdir
mkdir
(
path
:
string
,
options
?:
CreateDirOptions
)
:
Promise
<
void
>
Parameters
path
:
string
Optional
options
:
CreateDirOptions
Returns
Promise
<
void
>
read
Dir
readDir
(
path
:
string
,
options
?:
ReadDirOptions
)
:
Promise
<
FsEntry
[]
>
Parameters
path
:
string
Optional
options
:
ReadDirOptions
Returns
Promise
<
FsEntry
[]
>
read
File
readFile
(
path
:
string
)
:
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
Parameters
path
:
string
Returns
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
read
Text
File
readTextFile
(
path
:
string
)
:
Promise
<
string
>
Parameters
path
:
string
Returns
Promise
<
string
>
remove
remove
(
path
:
string
,
options
?:
RemoveOptions
)
:
Promise
<
void
>
Parameters
path
:
string
Optional
options
:
RemoveOptions
Returns
Promise
<
void
>
rename
rename
(
oldPath
:
string
,
newPath
:
string
)
:
Promise
<
void
>
Parameters
oldPath
:
string
newPath
:
string
Returns
Promise
<
void
>
write
File
writeFile
(
path
:
string
,
contents
:
string
|
ArrayBuffer
|
number
[]
|
Uint8Array
<
ArrayBufferLike
>
,
)
:
Promise
<
void
>
Parameters
path
:
string
contents
:
string
|
ArrayBuffer
|
number
[]
|
Uint8Array
<
ArrayBufferLike
>
Returns
Promise
<
void
>
write
Text
File
writeTextFile
(
path
:
string
,
contents
:
string
)
:
Promise
<
void
>
Parameters
path
:
string
contents
:
string
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
copy
File
exists
mkdir
read
Dir
read
File
read
Text
File
remove
rename
write
File
write
Text
File
webtau API
Loading...