Looking at https://deno.land/manual/examples/file_system_events which is the code below.
const watcher = Deno.watchFs("./src");
for await (const event of watcher) {
console.log(">>>> event", event);
// { kind: "create", paths: [ "/foo.txt" ] }
}
However, when I try to --allow-read permissions I get the error: Is a directory
deno run --allow-read src/ main.ts
error: Is a directory (os error 21)
How do I ensure that the explicit permission --allow-read is permitted for the specified /src folder?
I know that I can use -A to --allow-all, however, I want to be explicit to the allowed permission.