diff --git a/doc/api/permissions.md b/doc/api/permissions.md index d994035c808818..ceecd39ae66043 100644 --- a/doc/api/permissions.md +++ b/doc/api/permissions.md @@ -563,6 +563,14 @@ Wildcards are supported too: After passing a wildcard character (`*`) all subsequent characters will be ignored. For example: `/home/*.js` will work similar to `/home/*`. +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/*`. + #### Permission Model constraints There are constraints you need to know before using this system: