fws
Version:
Fws is a workflow management tool that focuses on global automation tasks.
16 lines • 411 B
JavaScript
/**
* 判断是否为Fws项目目录
*
* @param {string} dirPath 目录路径
* @returns
*
* @memberOf Watch
*/
module.exports = (dirPath)=>{
const {path,pathInfo} = {
path:require('path'),
pathInfo:require('./getPathInfo')
};
let fwsConfigFile = path.join(dirPath,'fws_config.js');
return pathInfo(dirPath).type === 'dir' && pathInfo(fwsConfigFile).type === 'file';
};