@yuantest/playwright - v1.0.5
GitHub
npm
正在准备搜索索引...
MemoryStorage
类 MemoryStorage
实现
StorageProvider
索引
构造函数
constructor
方法
read
JSON
write
JSON
read
Text
write
Text
append
Text
read
Buffer
write
Buffer
read
Dir
exists
mkdir
remove
remove
Dir
stat
copy
read
Dir
With
Types
clear
构造函数
constructor
new
MemoryStorage
()
:
MemoryStorage
返回
MemoryStorage
方法
read
JSON
readJSON
<
T
>
(
filePath
:
string
)
:
Promise
<
T
|
null
>
类型参数
T
参数
filePath
:
string
返回
Promise
<
T
|
null
>
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
>
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
>
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
[]
>
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
Dir
removeDir
(
dirPath
:
string
)
:
Promise
<
void
>
递归删除目录及其所有内容
参数
dirPath
:
string
返回
Promise
<
void
>
stat
stat
(
filePath
:
string
)
:
Promise
<
Stats
|
null
>
参数
filePath
:
string
返回
Promise
<
Stats
|
null
>
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
>
[]
>
clear
clear
()
:
void
返回
void
显示设置
成员可见性
受保护
继承
配色
自动
浅色
深色
目录
构造函数
constructor
方法
read
JSON
write
JSON
read
Text
write
Text
append
Text
read
Buffer
write
Buffer
read
Dir
exists
mkdir
remove
remove
Dir
stat
copy
read
Dir
With
Types
clear
GitHub
GitHub
npm
@yuantest/playwright - v1.0.5
加载中……
递归删除目录及其所有内容