-
Notifications
You must be signed in to change notification settings - Fork 11
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
Make sure file path exist before creat the file #30
Conversation
@KortanZ is there a failure somewhere in the plugin that you encountered because the directory did not exist? |
@chipsenkbeil Yes, the default db dir is |
Just for curious, this problem should happened on all platform theoretically and really easy to trigger, just a fresh install and open neovim. Is there something wrong with the test or is this problem just happend on Windows by some reason? I've not test other platform. |
Not sure why I didn't run into it. I've worked on this across three Mac computers. It doesn't seem like a Windows issue, but I haven't tried this plugin on windows yet. I opened and issue to add a github action to test on Windows. |
Have you tried delete |
* Make sure file path exist before creating the file by making the directory
uv.fs_open()
works equivalent toopen(2)
, which will return ENOENT when create file but file parent folder dose not exists. So we need to create directory before create the file.