Skip to content

fs.readdir alternative that calls a callback per entry instead of returning an array with all entries

License

Notifications You must be signed in to change notification settings

oferh/node-readpath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node readpath

Build Status

fs.readdir alternative that calls a callback per entry instead of returning an array with all entries.

readpath uses POSIX readdir to read the contents of the directory instead of using scandir like fs.readdir is doing.

Installation

$ npm install readpath

Read directory Asych

var readpath = require('../');

readpath.read('my-path',
  function(entry) {
    console.log(entry);
  },
  function(err) {
    console.log("Error: " + err);
  }
);

About

fs.readdir alternative that calls a callback per entry instead of returning an array with all entries

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published