mirror of
https://github.com/denoland/deno.git
synced 2024-12-29 10:39:10 -05:00
9 lines
317 B
TypeScript
9 lines
317 B
TypeScript
|
const status1 =
|
||
|
Deno.permissions.requestSync({ name: "read", path: "foo" }).state;
|
||
|
const status2 = Deno.permissions.querySync({ name: "read", path: "bar" }).state;
|
||
|
const status3 =
|
||
|
Deno.permissions.requestSync({ name: "read", path: "bar" }).state;
|
||
|
console.log(status1);
|
||
|
console.log(status2);
|
||
|
console.log(status3);
|