allow read and still asks for permission
~/other/games$ /home/sac/other/programs/deno run --allow-read=~/other/games/magic-decks ./magic-decks/magic-sac/main.js
Card Name ?
❌ Denied read access to "./magic-decks".
2 Replies
for await (const dirEntry of Deno.readDir("./magic-decks")) {
console.log(dirEntry);
if (!dirEntry.isFile) {
break;
}
console.log(dirEntry.name);
}
iirc deno recognizes directories by path, not by location. So
./magic-decks
is a different permission from ~/other/games/.magic-decks