Skip to content

Commit 754090c

Browse files
jakecastelliRafaelGSS
authored andcommitted
doc: add additional explanation to the wildcard section in permissions
Co-authored-by: Rafael Gonzaga <rafael.nunu@hotmail.com> PR-URL: #53664 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
1 parent aa0c5c2 commit 754090c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/api/permissions.md

+8
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,14 @@ 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, it will automatically add a wildcard
567+
(\*) if the specified directory exists. For example, if `/home/test/files`
568+
exists, it will be treated as `/home/test/files/*`. However, if the directory
569+
does not exist, the wildcard will not be added, and access will be limited to
570+
`/home/test/files`. If you want to allow access to a folder that does not exist
571+
yet, make sure to explicitly include the wildcard:
572+
`/my-path/folder-do-not-exist/*`.
573+
566574
#### Permission Model constraints
567575

568576
There are constraints you need to know before using this system:

0 commit comments

Comments
 (0)