修复ls递归错误

master
宇天 2020-12-15 18:12:43 +08:00
parent de6182576d
commit 901f356bfd
3 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,7 @@ const Iofs = {
var tmp = list.concat()
tmp.forEach(it => {
if (this.isdir(it)) {
list = list.concat(this.ls(it))
list = list.concat(this.ls(it, recursive))
}
})
}

View File

@ -63,7 +63,7 @@ export default {
var tmp = list.concat()
tmp.forEach(it => {
if (this.isdir(it)) {
list = list.concat(this.ls(it))
list = list.concat(this.ls(it, recursive))
}
})
}

View File

@ -1,6 +1,6 @@
{
"name": "iofs",
"version": "1.5.0",
"version": "1.5.1",
"description": "iofs是一个基于原生fs模块封装的工具, 旨在提供更加方便实用一些常用的API方法(同步), API习惯参考了bash shell。",
"main": "index.js",
"repository": {