Skip to content

queckezz/co-walk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

co-walk

walk a file tree and return a list of files

Installation

$ npm install co-walk

Example

var path = __dirname + '/app'

var files = yield walk(path, {
  symlinks: true,
  ignore: ['art/**', 'node_modules']
})

// -> ['/home/user/app/.gitignore', ...]

API

*walk(path, opts)

walk a file tree and return a list of files

  • path: full path to folder
  • opts:
    • symlinks: follow symlinks and return origin path [false]
    • ignore: a list which folders and files you want to ignore, or a predicate function (filename, relPath, fullPath) => boolean

Tests

$ make test

Licence

MIT

About

walk a file tree and return a list of files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published