Overview - File system permissions (--allow-read, --allow-write)
What is it?
File system permissions in Deno control whether a program can read or write files on your computer. The flags --allow-read and --allow-write explicitly grant these permissions when running a Deno script. Without these flags, the program cannot access or change files, keeping your system safe from unwanted changes.
Why it matters
These permissions exist to protect your computer from harmful or accidental file changes by scripts. Without them, any program could read or modify your files without asking, which could lead to data loss or security breaches. By requiring explicit permission, Deno helps you stay in control and trust the code you run.
Where it fits
Before learning about these permissions, you should understand basic command-line usage and how Deno runs scripts. After this, you can explore more advanced Deno permissions like network access or environment variables, and how to combine them for secure applications.
