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

why there is not a walkSync method? #202

Closed
zaaack opened this issue Dec 14, 2015 · 3 comments
Closed

why there is not a walkSync method? #202

zaaack opened this issue Dec 14, 2015 · 3 comments

Comments

@zaaack
Copy link

zaaack commented Dec 14, 2015

Is there anyway to implement synchronized walk method? I want to get all files in the directory and sub directories synchronized.

@jprichardson
Copy link
Owner

When you say synchronized, in this context it can mean different things. Are you asking a walkSync that calls the underlying fs.readdirSync/fs.lstatSync methods?

@zaaack
Copy link
Author

zaaack commented Dec 15, 2015

@jprichardson yes, that's what I mean

@jprichardson
Copy link
Owner

Sync in this case would not typically a desirable thing to do. But it should be pretty easy to implement on your end. You could use the fs-extra walk algorithm as a reference: https://github.com/jprichardson/node-klaw/blob/master/index.js

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