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

parallelizing file existance check using promises #188

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

maxlath
Copy link
Contributor

@maxlath maxlath commented Dec 30, 2016

Motivations:

If this sounds like good motivations, I can have a look at other places where fs.existsSync is used throughout the project :)

thanks for this great project!

@claudioc
Copy link
Owner

claudioc commented Jan 8, 2017

This is very good point. I like how this PR works and I definitely would like to merge it.

I propose that you try to kill all the exists, first if you want replacing them with a sync access and then if you feel comfortable with the code, move them to the promisified version.

What do you think? Thanks!

@maxlath
Copy link
Contributor Author

maxlath commented Jan 8, 2017

4d5495f focuses on killing all uses of fs.exists but mostly keeping the sync flow

@maxlath
Copy link
Contributor Author

maxlath commented Jan 8, 2017

Then, getting those to work async seems to require some heavy rewriting. That could make sense in an effort to get the whole project into promises flow but I can't give it the time in needs unfortunately

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

Successfully merging this pull request may close these issues.

None yet

2 participants