Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fileCallback add a additional param named filename #35

Open
zhangsanshi opened this issue Aug 1, 2016 · 2 comments
Open

fileCallback add a additional param named filename #35

zhangsanshi opened this issue Aug 1, 2016 · 2 comments

Comments

@zhangsanshi
Copy link

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

@zhangsanshi zhangsanshi changed the title fileCallback add a additional param fileCallback add a additional param named filename Aug 1, 2016
@AckerApple
Copy link
Contributor

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants