readpath

0.1.1 • Public • Published

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

Clone the repository to a local folder and run

$ npm install

Read directory Asych

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

Package Sidebar

Install

npm i readpath

Weekly Downloads

0

Version

0.1.1

License

Apache-2.0

Last publish

Collaborators

  • oferhe