fshost / node-dir

Recursive asynchronous file and directory operations for Node.js
MIT License
221 stars 44 forks source link

fileCallback add a additional param named filename #35

Open zhangsanshi opened 8 years ago

zhangsanshi commented 8 years ago

Sometimes I need to know the fullpath of a file,but I just can get the shortName.

AckerApple commented 7 years ago

My pull request addresses this by adding require('node-dir').files(path, 'all', callback, {shortName:true})

Check it out, working with package owner to make official: #40

fork location: https://github.com/AckerApple/node-dir

AckerApple commented 7 years ago

New pull request now includes options.shortName='relative' which allows all items to be returned but only with a value that is relative to the base path

43