Node【|Node【 fs.exists, 检测是否为目录】

``` /** * @todo {检测是否目录} * @desc {fs.exists 废弃了,推荐用fs.stat 和fs.access来实现} * @param {wpath} path * @return {boolean} */ fsExistsSync : ( wpath ) => { try{ fs.accessSync( wpath ); } catch ( e ) { return false; } return true; }


    推荐阅读