Skip to content

Change existsSync to exception handler #1879

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

Merged

Conversation

steven-supersolid
Copy link
Contributor

gs.existsSync is deprecated but fs.statSync could give incorrect results if a concurrent process creates the folder. We could check for a specific error case but as there is no error handling currently, e.g. for not having write permission, the intention of this PR is just to fix the bug #1806

http://stackoverflow.com/questions/28532820/fs-exists-fs-existssync-why-are-they-deprecated

@drew-gross
Copy link
Contributor

Build failure is caused by mongo download issues, merging anyway.

@drew-gross drew-gross closed this May 23, 2016
@drew-gross drew-gross reopened this May 23, 2016
@drew-gross drew-gross merged commit 8b43d26 into parse-community:master May 23, 2016
JeremyPlease pushed a commit to JeremyPlease/parse-server that referenced this pull request May 24, 2016
@steven-supersolid steven-supersolid deleted the multiple-instance-logger-mkdir branch June 23, 2017 15:24
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

Successfully merging this pull request may close these issues.

2 participants