list-empty-files
List all empty files in a given directory
const listEmptyFiles = ; /* a.txt: 'Hi' b.txt: '' c.txt: 'Hello' d.txt: ''*/ ;
Installation
npm install list-empty-files
API
const listEmptyFiles = ;
listEmptyFiles(dir)
dir: string
(directory path)
options: Object
(readdir-sorted
options)
Return: Promise<Set<string>>
The promise will be fulfilled with a Set
of strings — absolute paths of all zero byte files included in the given directory.
Options are directly passed to the underlying readdir-sorted
to control the order of results.
; ;
License
ISC License © 2018 Shinnosuke Watanabe