-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
这个逻辑貌似存在一些问题。
当
fs.access(...)
不可读时,依然在尝试写入,结合上下文来看,应该是文件不存在则写入默认配置。是否应该考虑使用
constants.F_OK
来判断比较好?