Skip to content

Commit 7dfbdc3

Browse files
Update doc/api/permissions.md
Co-authored-by: Rafael Gonzaga <rafael.nunu@hotmail.com>
1 parent 65e24b1 commit 7dfbdc3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

doc/api/permissions.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -563,11 +563,8 @@ Wildcards are supported too:
563563
After passing a wildcard character (`*`) all subsequent characters will
564564
be ignored. For example: `/home/*.js` will work similar to `/home/*`.
565565

566-
When the permission model is initialized, if no wildcard is specified, it will
567-
be implicitly added if the current directory exists, otherwise it will not be
568-
implicitly added. e.g. `/home/test/files` if `files` exists as a directory then
569-
you can think of it as `/home//test/files/*`, otherwise the access is only
570-
allowed to `/home/test/files`.
566+
567+
When the permission model is initialized, it will automatically add a wildcard (*) if the specified directory exists. For example, if `/home/test/files` exists, it will be treated as `/home/test/files/*`. However, if the directory does not exist, the wildcard will not be added, and access will be limited to `/home/test/files`. If you want to allow access to a folder that does not exist yet, make sure to explicitly include the wildcard: `/my-path/folder-do-not-exist/*`.
571568

572569
#### Permission Model constraints
573570

0 commit comments

Comments
 (0)