1 | /**
|
2 | * 判断是否为Fws项目目录
|
3 | *
|
4 | * @param {string} dirPath 目录路径
|
5 | * @returns
|
6 | *
|
7 | * @memberOf Watch
|
8 | */
|
9 | module.exports = (dirPath)=>{
|
10 | const {path,pathInfo} = {
|
11 | path:require('path'),
|
12 | pathInfo:require('./getPathInfo')
|
13 | };
|
14 | let fwsConfigFile = path.join(dirPath,'fws_config.js');
|
15 | return pathInfo(dirPath).type === 'dir' && pathInfo(fwsConfigFile).type === 'file';
|
16 | }; |
\ | No newline at end of file |