-
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
Deno.open createNew not working #71
Comments
According to the node and deno docs I would say the negation here is wrong:
Deno docs: /** Defaults to `false`. If set to `true`, no file, directory, or symlink is
* allowed to exist at the target location. Requires write or append
* access to be used. When createNew is set to `true`, create and truncate
* are ignored. */
createNew?: boolean; |
tiloio
added a commit
to tiloio/node_deno_shims
that referenced
this issue
Dec 28, 2021
Created PR #72 to address this issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I run
await Deno.open('./test-file', { createNew: true, write: true });
I will get the following error when I use the deno shims with the https://github.com/denoland/dnt build esm output.I created an example to show the error: https://github.com/tiloio/deno-open-create-new-shim-bug
There is no way to have not an error if I set
createNew
to true:https://github.com/denoland/node_deno_shims/blob/430ad2bfade33c532a9a078fc4e79a48831ce5fe/packages/shim-deno/src/deno/internal/fs_flags.ts#L35
The text was updated successfully, but these errors were encountered: