`if (fs.statSync(fp).isDirectory() && ...`