mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-04-21 11:26:15 +02:00
92f98a93b4
* docs(fs): `fs:scope` usage * Use APPDATA for the example instead * `/**/*`
29 lines
451 B
TOML
29 lines
451 B
TOML
"$schema" = "schemas/schema.json"
|
|
|
|
[[permission]]
|
|
identifier = "scope"
|
|
description = """
|
|
An empty permission you can use to modify the global scope.
|
|
|
|
## Example
|
|
|
|
```json
|
|
{
|
|
"identifier": "read-documents",
|
|
"windows": ["main"],
|
|
"permissions": [
|
|
"fs:allow-read",
|
|
{
|
|
"identifier": "fs:scope",
|
|
"allow": [
|
|
"$APPDATA/documents/**/*"
|
|
],
|
|
"deny": [
|
|
"$APPDATA/documents/secret.txt"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
```
|
|
"""
|