fs.rename
在调用之后fs.writeFile
(但在 之前)立即保存文件是否安全callback
?
文档没有回答这个问题,它只是说:
Note that it is unsafe to use fs.write multiple times
on the same file without waiting for the callback.
fs.rename
在调用之后fs.writeFile
(但在 之前)立即保存文件是否安全callback
?
文档没有回答这个问题,它只是说:
Note that it is unsafe to use fs.write multiple times
on the same file without waiting for the callback.