filehandle.appendFile(data[, options])


filehandle.writeFile() 的别名。

¥Alias of filehandle.writeFile().

当在文件句柄上进行操作时,则无法将模式更改为使用 fsPromises.open() 设置的模式。因此,这相当于 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().