0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-07 23:06:50 -05:00
denoland-deno/ext/fs
Marvin Hagemeister 4e655e543f
feat: Deno.cwd() no longer requires --allow-read permission (#27192)
This commit changes "Deno.cwd()" (as well as "process.cwd()") to no
longer require full "--allow-read" permission. This change was meant to be done
in Deno 2.0.0, but somehow it slipped. Requiring full read permission
just to read the CWD is a mistake, because CWD can already be obtained
with no permission by throwing an error in JS and inspecting its stack.

Fixes https://github.com/denoland/deno/issues/27110

---------

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2025-01-27 15:13:59 +01:00
..
30_fs.js chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
Cargo.toml chore: forward v2.1.7 release commit to main (#27767) 2025-01-21 19:25:12 -08:00
clippy.toml refactor: decouple node resolution from deno_core (#24724) 2024-07-25 19:08:14 -04:00
interface.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
lib.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
ops.rs feat: Deno.cwd() no longer requires --allow-read permission (#27192) 2025-01-27 15:13:59 +01:00
README.md refactor: Add "deno_fs" extension crate (#18040) 2023-03-07 18:13:44 +09:00
std_fs.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
sync.rs chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00

deno_fs

This crate provides ops for interacting with the file system.