Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 615 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 615 Bytes

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);
  }
);