向文件追加内容。
文件路径。
要追加的内容。
Optional
可选的追加选项。
追加成功返回的异步操作结果。
1.0.0
const result = await appendFile('/path/to/file.txt', '\nNew content');if (result.isOk()) { console.log('追加成功');} Copy
const result = await appendFile('/path/to/file.txt', '\nNew content');if (result.isOk()) { console.log('追加成功');}
向文件追加内容。