Strange NodeJS behavior on fs.readdir and empty directory

前端 未结 0 728
情话喂你
情话喂你 2020-12-08 02:08

I have code like this which checks for existence of directory before reading the directory:

const fs = require(\'fs\');

fs.exists(dir, function (exists) {
           


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题