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

Lines changed: 0 additions & 4 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy