Yoshiya Hinosawa
Yoshiya Hinosawa
Transition from Reader/Writer to Web Stream was discussed, for example, in this issue https://github.com/denoland/deno/issues/9795 Maybe we were too less concerned about what happens with sync I/O?
Is it possible to extend Web Streams API to have synchronous reader/writer?
> Why not? The point is that the lint test will fail if expired deprecations are not removed and therefore std cannot be published until that point. And when in...
> 1. Check if a file/dir exists > 2. If it doesn't exist, do expensive thing If the check is for a file (not dir), and `expensive thing` is creating...
There's types of usages like `assertEquals(existsSync(srcFile), true);` in `copy` and `move` testing. Usages in testing might be also another example of legit usage.
@lino-levan See also https://github.com/denoland/deno_std/pull/2785 . I believe it's the latest version of the proposal.
@martin-braun I probably don't understand the question well. It sounds just fine to return `false` when PermissionDenied thrown (on windows). What could be the issue in that case? BTW I...
> In regards of introducing isDir: true or isFile: true to have just one exists: Feels wrong to me, since the user can cause illogical states (both true or both...
Ah, makes sense. It was just a false negative
Note: #1479 changed the timing of throwing when the directory path is given as `filePath` parameter. It used to immediately throw, but now it throws when the response body is...