mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-10 19:27:07 +02:00
fixed api, fixed ListFiles function
This commit is contained in:
@@ -23,9 +23,7 @@ func ListFiles(dir string, maxDepth int) ([]string, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
for _, subEntry := range subEntries {
|
||||
files = append(files, path.Join(dir, entry.Name(), subEntry))
|
||||
}
|
||||
files = append(files, subEntries...)
|
||||
} else {
|
||||
files = append(files, path.Join(dir, entry.Name()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user