We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
{ read: true }
Open a file without specify { read: true }
import { toText } from 'jsr:@std/streams' const file = await Deno.open('log-1.json', { append: true }) const lines = await toText(file.readable)
Result in error:
error: Uncaught (in promise) Error: Bad file descriptor (os error 9) at async Object.pull (ext:deno_web/06_streams.js:941:27)
In this case, instead of Bad file descriptor (os error 9) , FsFile is not readable should be more clear.
Bad file descriptor (os error 9)
FsFile is not readable
This is just an example. I can't just use Deno.readTextFile(...) instead.
Deno.readTextFile(...)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Open a file without specify
{ read: true }
Result in error:
In this case, instead of
Bad file descriptor (os error 9)
,FsFile is not readable
should be more clear.This is just an example.
I can't just use
Deno.readTextFile(...)
instead.The text was updated successfully, but these errors were encountered: