filehandle.appendFile(data[, options])
data
<string> | <Buffer> | <TypedArray> | <DataView> | <AsyncIterable> | <Iterable> | <Stream>options
<Object> | <string>- 返回: <Promise> 成功时将使用
undefined
履行。
当在文件句柄上进行操作时,则无法将模式更改为使用 fsPromises.open()
设置的模式。
因此,这相当于 filehandle.writeFile()
。
data
<string> | <Buffer> | <TypedArray> | <DataView> | <AsyncIterable> | <Iterable> | <Stream>options
<Object> | <string>- Returns: <Promise> Fulfills with
undefined
upon success.
Alias of filehandle.writeFile()
.
When operating on file handles, the mode cannot be changed from what it was set
to with fsPromises.open()
. Therefore, this is equivalent to
filehandle.writeFile()
.