node-dir icon indicating copy to clipboard operation
node-dir copied to clipboard

fileCallback add a additional param named filename

Open zhangsanshi opened this issue 8 years ago • 2 comments

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

zhangsanshi avatar Aug 01 '16 11:08 zhangsanshi

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 avatar Dec 01 '16 21:12 AckerApple

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

AckerApple avatar Dec 12 '16 17:12 AckerApple