Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 754090c

Browse filesBrowse 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
Copy full SHA for 754090c

1 file changed

+8Lines changed: 8 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/permissions.md‎

Copy file name to clipboardExpand all lines: doc/api/permissions.md
+8Lines changed: 8 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.