lib/middleware/jng.utils.js
function getAppFileNames(appName, dir) {
    var partialsDir = this.pancakes.getRootDir() + delim + 'app' + delim + appName + delim + dir;
    return fs.existsSync(partialsDir) ? fs.readdirSync(partialsDir) : [];
}
function getAppFileNames(appName, dir) {
    var partialsDir = this.pancakes.getRootDir() + delim + 'app' + delim + appName + delim + dir;
    return fs.existsSync(partialsDir) ? fs.readdirSync(partialsDir) : [];
}
function getAppFileNames ( appName , dir ) { var partialsDir = this . pancakes . getRootDir ( ) + delim + 'app' + delim + appName + delim + dir ; return fs . existsSync ( partialsDir ) ? fs . readdirSync ( partialsDir ) : [ ] ; }
Get all file names in a given app's directory
@param appName
@param dir
@returns {*}
Get all file names in a given app s directory