docs(fs): fs:scope usage (#2969)

* docs(fs): `fs:scope` usage

* Use APPDATA for the example instead

* `/**/*`
This commit is contained in:
Tony
2025-10-01 17:24:04 +08:00
committed by GitHub
parent c0f82e5a5e
commit 92f98a93b4
3 changed files with 48 additions and 3 deletions
+24 -1
View File
@@ -2,4 +2,27 @@
[[permission]]
identifier = "scope"
description = "An empty permission you can use to modify the global 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"
]
}
]
}
```
"""