Skip to content

wdalmut/ls-stat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Directory iterator (with stats)

Simple sequential/serial folder iterator with promises

const ls = require('ls-stat');

ls('/path/to/disk').then((files) => {
    // ['folder1', 'folder2', 'file.txt', 'file2.txt'] (stats included)
    var paths = files.filter((file) => file.isDirectory()).map((file) => file.filename);

    console.log(paths); // ['folder1', 'folder2']
});

About

Simple ls with promises

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published