@yuantest/playwright - v1.0.5
GitHub
npm
正在准备搜索索引...
FilesystemStorage
类 FilesystemStorage
实现
StorageProvider
StorageProviderWithResult
索引
构造函数
constructor
方法
read
JSON
read
JSON
With
Result
write
JSON
read
Text
read
Text
With
Result
write
Text
append
Text
read
Buffer
read
Buffer
With
Result
write
Buffer
read
Dir
read
Dir
With
Result
exists
mkdir
remove
remove
With
Result
remove
Dir
stat
stat
With
Result
copy
read
Dir
With
Types
构造函数
constructor
new
FilesystemStorage
()
:
FilesystemStorage
返回
FilesystemStorage
方法
read
JSON
readJSON
<
T
>
(
filePath
:
string
)
:
Promise
<
T
|
null
>
类型参数
T
参数
filePath
:
string
返回
Promise
<
T
|
null
>
read
JSON
With
Result
readJSONWithResult
<
T
>
(
filePath
:
string
)
:
Promise
<
Result
<
T
>
>
类型参数
T
参数
filePath
:
string
返回
Promise
<
Result
<
T
>
>
write
JSON
writeJSON
(
filePath
:
string
,
data
:
any
)
:
Promise
<
void
>
参数
filePath
:
string
data
:
any
返回
Promise
<
void
>
read
Text
readText
(
filePath
:
string
)
:
Promise
<
string
|
null
>
参数
filePath
:
string
返回
Promise
<
string
|
null
>
read
Text
With
Result
readTextWithResult
(
filePath
:
string
)
:
Promise
<
Result
<
string
>
>
参数
filePath
:
string
返回
Promise
<
Result
<
string
>
>
write
Text
writeText
(
filePath
:
string
,
content
:
string
)
:
Promise
<
void
>
参数
filePath
:
string
content
:
string
返回
Promise
<
void
>
append
Text
appendText
(
filePath
:
string
,
content
:
string
)
:
Promise
<
void
>
参数
filePath
:
string
content
:
string
返回
Promise
<
void
>
read
Buffer
readBuffer
(
filePath
:
string
)
:
Promise
<
Buffer
<
ArrayBufferLike
>
|
null
>
参数
filePath
:
string
返回
Promise
<
Buffer
<
ArrayBufferLike
>
|
null
>
read
Buffer
With
Result
readBufferWithResult
(
filePath
:
string
)
:
Promise
<
Result
<
Buffer
<
ArrayBufferLike
>
>
>
参数
filePath
:
string
返回
Promise
<
Result
<
Buffer
<
ArrayBufferLike
>
>
>
write
Buffer
writeBuffer
(
filePath
:
string
,
data
:
Buffer
)
:
Promise
<
void
>
参数
filePath
:
string
data
:
Buffer
返回
Promise
<
void
>
read
Dir
readDir
(
dirPath
:
string
)
:
Promise
<
string
[]
>
参数
dirPath
:
string
返回
Promise
<
string
[]
>
read
Dir
With
Result
readDirWithResult
(
dirPath
:
string
)
:
Promise
<
Result
<
string
[]
>
>
参数
dirPath
:
string
返回
Promise
<
Result
<
string
[]
>
>
exists
exists
(
filePath
:
string
)
:
Promise
<
boolean
>
参数
filePath
:
string
返回
Promise
<
boolean
>
mkdir
mkdir
(
dirPath
:
string
)
:
Promise
<
void
>
参数
dirPath
:
string
返回
Promise
<
void
>
remove
remove
(
filePath
:
string
)
:
Promise
<
void
>
参数
filePath
:
string
返回
Promise
<
void
>
remove
With
Result
removeWithResult
(
filePath
:
string
)
:
Promise
<
Result
<
void
>
>
参数
filePath
:
string
返回
Promise
<
Result
<
void
>
>
remove
Dir
removeDir
(
dirPath
:
string
)
:
Promise
<
void
>
递归删除目录及其所有内容
参数
dirPath
:
string
返回
Promise
<
void
>
stat
stat
(
filePath
:
string
)
:
Promise
<
Stats
|
null
>
参数
filePath
:
string
返回
Promise
<
Stats
|
null
>
stat
With
Result
statWithResult
(
filePath
:
string
)
:
Promise
<
Result
<
Stats
>
>
参数
filePath
:
string
返回
Promise
<
Result
<
Stats
>
>
copy
copy
(
src
:
string
,
dest
:
string
)
:
Promise
<
void
>
参数
src
:
string
dest
:
string
返回
Promise
<
void
>
read
Dir
With
Types
readDirWithTypes
(
dirPath
:
string
)
:
Promise
<
Dirent
<
string
>
[]
>
参数
dirPath
:
string
返回
Promise
<
Dirent
<
string
>
[]
>
显示设置
成员可见性
受保护
继承
配色
自动
浅色
深色
目录
构造函数
constructor
方法
read
JSON
read
JSON
With
Result
write
JSON
read
Text
read
Text
With
Result
write
Text
append
Text
read
Buffer
read
Buffer
With
Result
write
Buffer
read
Dir
read
Dir
With
Result
exists
mkdir
remove
remove
With
Result
remove
Dir
stat
stat
With
Result
copy
read
Dir
With
Types
GitHub
GitHub
npm
@yuantest/playwright - v1.0.5
加载中……
递归删除目录及其所有内容