I am using readDirSync to get the files from a Diretory. PLease find the code and error as following.
var fs = require(\'fs\'); var files = fs.readdirSync(\'./ap
Have you tried the following?
var files = fs.readdirSync(__dirname+'/application/models/');