-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Fix issue where subfolders aren’t checked for existence before creation #14
Fix issue where subfolders aren’t checked for existence before creation #14
Conversation
Any idea why the CI failed on node 10? Probably un-related to my change. |
@blechatellier is |
@sant123 thanks for the additional information. It looks like the tests are timing out on the CI so probably just need to re-run them, but I'd also like to find out what the root cause of the original issue is because |
/data is, expecting the store subfolder to be created but fails on /
|
@doowb re-ran the CI, checks are all good now, any chance to get this merged in please? |
I believe @doowb is asking if
That's not what the error indicates. edit: to be clear, I'm not saying "this is definitely what's happening", I'm mentioning it in case it's what's happening. That said, even if it's not what's happening in this case, using |
@jonschlinkert got it, to give some context, I'm using data-store in a Docker container with a mounted volume at |
It sounds like that's what's happening. Based on that, is your opinion still that is this definitely a bug? If so I think we might need to do more checking than edit: I'm looking at it now, I have some ideas if you do think we need to make some changes, but I'll probably need more feedback after we try some things out to make sure it will work on other operating systems besides osx and windows. |
Wouldn't say it's a bug but more of a corner case not handled, what other checks do you have in mind? |
also adds checks related to #14
sorry for the late reply.
I just pushed up some minor changes: 88c0d6f. If you have a moment, please try that code out and let me know if it resolves the issue. |
@jonschlinkert awesome, works - thanks! |
Getting an error when trying to save the store to
/data/store
, if a subfolder already exists the mkdir method doesn't check for it and throw an error.