调查问卷
This commit is contained in:
		| @@ -40,12 +40,12 @@ const chalkTag = { | ||||
|  */ | ||||
| const findApp = (dir, cb) => { | ||||
|   return readdir(dir).then(apps => { | ||||
|     return Promise.all(apps?.map(e => { | ||||
|     return Promise.all(apps.map(e => { | ||||
|       let cPath = path.join(dir, e) | ||||
|       return stat(cPath).then(state => { | ||||
|         if (state?.isDirectory()) { | ||||
|         if (state.isDirectory()) { | ||||
|           return findApp(cPath, cb) | ||||
|         } else if (state?.isFile()) { | ||||
|         } else if (state.isFile()) { | ||||
|           cb && cb(cPath) | ||||
|         } | ||||
|       }) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user