Skip to content

Commit 2053233

Browse files
committed
Clean old implementation
1 parent db8a85f commit 2053233

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

index.js

-4
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ function ilistFolder(folder, filesOnly) {
3131
type: fs.lstatSync(filePath).isDirectory() ? 'folder' : 'file'
3232
}
3333
})
34-
// Filter out directories
35-
if (filesOnly) {
36-
files = files.filter(f => f.type === 'file')
37-
}
3834
// Filter out dot files
3935
files = files.filter(f => f.path.indexOf('.') !== 0)
4036
return files

0 commit comments

Comments
 (0)