GrosSacASacs
GrosSacASacs3mo ago

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
GrosSacASacs
GrosSacASacsOP3mo ago
for await (const dirEntry of Deno.readDir("./magic-decks")) { console.log(dirEntry); if (!dirEntry.isFile) { break; } console.log(dirEntry.name); }
RShields
RShields3mo ago
iirc deno recognizes directories by path, not by location. So ./magic-decks is a different permission from ~/other/games/.magic-decks

Did you find this page helpful?