nodejs fs.open error code : 'ENOENT'

在使用fs.open(filepath, 'a+', function(error, fd){...................content.................});出现如下图的错误:


问题是,我在nodejs的项目thy文件下没有log文件夹,想open '/Users/mc505/nodeProject/thy/log/routerlog-2013-08-01.log' 需先创建log文件夹,再创建routerlog-2013-08-01.log日志文件。

评论

©不知道 / Powered by LOFTER