@@ -36,7 +36,8 @@ export interface ExistsOptions {
36
36
* @see {@link https://en.wikipedia.org/wiki/Time-of-check_to_time-of-use } for
37
37
* more information on the time-of-check to time-of-use bug.
38
38
*
39
- * Requires `--allow-read` and `--allow-sys` permissions.
39
+ * Requires `--allow-read` permissions, and in some cases, `--allow-sys`
40
+ * permissions if `options.isReadable` is `true`.
40
41
*
41
42
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access }
42
43
* for more information on Deno's permissions system.
@@ -72,6 +73,9 @@ export interface ExistsOptions {
72
73
* ```
73
74
*
74
75
* @example Check if a path is readable
76
+ *
77
+ * Requires `--allow-sys` permissions in some cases.
78
+ *
75
79
* ```ts no-eval
76
80
* import { exists } from "@std/fs/exists";
77
81
*
@@ -96,6 +100,9 @@ export interface ExistsOptions {
96
100
* ```
97
101
*
98
102
* @example Check if a path is a readable directory
103
+ *
104
+ * Requires `--allow-sys` permissions in some cases.
105
+ *
99
106
* ```ts no-eval
100
107
* import { exists } from "@std/fs/exists";
101
108
*
@@ -104,6 +111,9 @@ export interface ExistsOptions {
104
111
* ```
105
112
*
106
113
* @example Check if a path is a readable file
114
+ *
115
+ * Requires `--allow-sys` permissions in some cases.
116
+ *
107
117
* ```ts no-eval
108
118
* import { exists } from "@std/fs/exists";
109
119
*
@@ -166,7 +176,8 @@ export async function exists(
166
176
* @see {@link https://en.wikipedia.org/wiki/Time-of-check_to_time-of-use } for
167
177
* more information on the time-of-check to time-of-use bug.
168
178
*
169
- * Requires `--allow-read` and `--allow-sys` permissions.
179
+ * Requires `--allow-read` permissions, and in some cases, `--allow-sys`
180
+ * permissions if `options.isReadable` is `true`.
170
181
*
171
182
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access }
172
183
* for more information on Deno's permissions system.
@@ -201,6 +212,9 @@ export async function exists(
201
212
* ```
202
213
*
203
214
* @example Check if a path is readable
215
+ *
216
+ * Requires `--allow-sys` permissions in some cases.
217
+ *
204
218
* ```ts no-eval
205
219
* import { existsSync } from "@std/fs/exists";
206
220
*
@@ -225,6 +239,9 @@ export async function exists(
225
239
* ```
226
240
*
227
241
* @example Check if a path is a readable directory
242
+ *
243
+ * Requires `--allow-sys` permissions in some cases.
244
+ *
228
245
* ```ts no-eval
229
246
* import { existsSync } from "@std/fs/exists";
230
247
*
@@ -233,6 +250,9 @@ export async function exists(
233
250
* ```
234
251
*
235
252
* @example Check if a path is a readable file
253
+ *
254
+ * Requires `--allow-sys` permissions in some cases.
255
+ *
236
256
* ```ts no-eval
237
257
* import { existsSync } from "@std/fs/exists";
238
258
*
0 commit comments