🐛(WinOS) unable to open network or device paths without `--allow-all`
❯ deno --version
deno 2.0.0-rc.10 (release candidate, release, x86_64-pc-windows-msvc)
v8 12.9.202.13-rusty
typescript 5.6.2
For WinOS, network file paths such as "//server/path/to/foo", drive mounted network paths, and device paths (eg, "//./device/path") require --allow-all permissions to open/manipulate. If --allow-all isn't provided, no permission prompt is supplied; instead, a "NotCapable" error/panic is produced.
These paths, when opened, should instead require some specific permission or permission set (--allow-sys?, --allow-net?, possibly on top of --allow-read and/or --allow-write). ~~POSIX-type network paths don't seem to have the same issue.~~
It seems that, now, as of Deno-v1.46.3, POSIX-like device paths such as '/dev/tty' also have the same permission issue.
From testing, on Linux (? MacOS), mounted remote shares only seem to need read/write permissions.
related issues/PRs (all stalled)
PR https://github.com/denoland/deno/pull/25132 as a solution to https://github.com/denoland/deno/issues/24703. PR https://github.com/denoland/deno/pull/25851 as a solution to https://github.com/denoland/deno/issues/24791.