Skip to content

Commit

Permalink
fix error in readme where file paths returned were incorrectly called…
Browse files Browse the repository at this point in the history
… absolute
  • Loading branch information
Jamison Dance committed Feb 21, 2018
1 parent 207506a commit ae02b59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on OS X and Linux, the order of files inside directories is [not guaranteed](htt
var recursive = require("recursive-readdir");

recursive("some/path", function (err, files) {
// `files` is an array of absolute file paths
// `files` is an array of file paths
console.log(files);
});
```
Expand All @@ -40,7 +40,7 @@ ignore a file:
var recursive = require("recursive-readdir");

function ignoreFunc(file, stats) {
// `file` is the absolute path to the file, and `stats` is an `fs.Stats`
// `file` is the path to the file, and `stats` is an `fs.Stats`
// object returned from `fs.lstat()`.
return stats.isDirectory() && path.basename(file) == "test";
}
Expand Down

0 comments on commit ae02b59

Please sign in to comment.