调查问卷

This commit is contained in:
yanran200730
2021-11-22 16:39:07 +08:00
parent fc80c2c4b0
commit 5640d8b6e5
12 changed files with 3541 additions and 3 deletions

View File

@@ -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)
}
})