Set a subuser's file blocklist
subuser_set_filesSet blocked file and directory patterns for a subuser on sftp-permissions panels, using gitignore syntax to deny access or hide paths from listings.
Instructions
Set which files and directories a subuser may not touch, on panels carrying the sftp-permissions addon. This is a route of its own: the fields are read back by subuser_list but sending them to subuser_update does nothing. Patterns are gitignore syntax, matched by wings — '.jar' matches at any depth, a trailing slash means a directory, and '!' re-allows a path. Note that wings anchors every negation to the server root, so an exception has to name its full path: '!/plugins/AxVaults/messages.yml' works where '!/messages.yml' does not. A root admin bypasses the list entirely.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | Yes | Subuser uuid, from subuser_list. | |
| panel | No | Name of a saved panel. Omit to use the active or default panel. | |
| server | Yes | ||
| baseUrl | No | Inline panel URL override, e.g. https://panel.example.com. Not persisted. | |
| clientKey | No | Inline client API key (ptlc_…) override. Not persisted. | |
| denyfiles | Yes | Blocked patterns. Pass an empty array to clear the list. | |
| hidefiles | Yes | True hides the blocked paths from listings; false only refuses access. | |
| applicationKey | No | Inline application API key (ptla_…) override. Not persisted. |