Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changes/fs-scope-recursive-allow-read-dir.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"fs": patch:enhance
---

The `scope-*-recursive` permissions now also allow reading the contents of the directory.
6 changes: 5 additions & 1 deletion plugins/fs/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,17 @@ fn main() {
identifier = "scope-{lower}-recursive"
description = "This scope permits recursive access to the complete `${upper}` folder, including sub directories and files."

[[permission.scope.allow]]
path = "${upper}"
[[permission.scope.allow]]
path = "${upper}/**"

[[permission]]
identifier = "scope-{lower}"
description = "This scope permits access to all files and list content of top level directories in the `${upper}`folder."

[[permission.scope.allow]]
path = "${upper}"
[[permission.scope.allow]]
path = "${upper}/*"

Expand All @@ -126,7 +130,7 @@ identifier = "scope-{lower}-index"
description = "This scope permits to list all files and folders in the `${upper}`folder."

[[permission.scope.allow]]
path = "${upper}/"
path = "${upper}"

# Sets Section
# This section combines the scope elements with enablement of commands
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@
identifier = "scope-app-recursive"
description = "This scope permits recursive access to the complete `$APP` folder, including sub directories and files."

[[permission.scope.allow]]
path = "$APP"
[[permission.scope.allow]]
path = "$APP/**"

[[permission]]
identifier = "scope-app"
description = "This scope permits access to all files and list content of top level directories in the `$APP`folder."

[[permission.scope.allow]]
path = "$APP"
[[permission.scope.allow]]
path = "$APP/*"

Expand All @@ -24,7 +28,7 @@ identifier = "scope-app-index"
description = "This scope permits to list all files and folders in the `$APP`folder."

[[permission.scope.allow]]
path = "$APP/"
path = "$APP"

# Sets Section
# This section combines the scope elements with enablement of commands
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@
identifier = "scope-appcache-recursive"
description = "This scope permits recursive access to the complete `$APPCACHE` folder, including sub directories and files."

[[permission.scope.allow]]
path = "$APPCACHE"
[[permission.scope.allow]]
path = "$APPCACHE/**"

[[permission]]
identifier = "scope-appcache"
description = "This scope permits access to all files and list content of top level directories in the `$APPCACHE`folder."

[[permission.scope.allow]]
path = "$APPCACHE"
[[permission.scope.allow]]
path = "$APPCACHE/*"

Expand All @@ -24,7 +28,7 @@ identifier = "scope-appcache-index"
description = "This scope permits to list all files and folders in the `$APPCACHE`folder."

[[permission.scope.allow]]
path = "$APPCACHE/"
path = "$APPCACHE"

# Sets Section
# This section combines the scope elements with enablement of commands
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@
identifier = "scope-appconfig-recursive"
description = "This scope permits recursive access to the complete `$APPCONFIG` folder, including sub directories and files."

[[permission.scope.allow]]
path = "$APPCONFIG"
[[permission.scope.allow]]
path = "$APPCONFIG/**"

[[permission]]
identifier = "scope-appconfig"
description = "This scope permits access to all files and list content of top level directories in the `$APPCONFIG`folder."

[[permission.scope.allow]]
path = "$APPCONFIG"
[[permission.scope.allow]]
path = "$APPCONFIG/*"

Expand All @@ -24,7 +28,7 @@ identifier = "scope-appconfig-index"
description = "This scope permits to list all files and folders in the `$APPCONFIG`folder."

[[permission.scope.allow]]
path = "$APPCONFIG/"
path = "$APPCONFIG"

# Sets Section
# This section combines the scope elements with enablement of commands
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@
identifier = "scope-appdata-recursive"
description = "This scope permits recursive access to the complete `$APPDATA` folder, including sub directories and files."

[[permission.scope.allow]]
path = "$APPDATA"
[[permission.scope.allow]]
path = "$APPDATA/**"

[[permission]]
identifier = "scope-appdata"
description = "This scope permits access to all files and list content of top level directories in the `$APPDATA`folder."

[[permission.scope.allow]]
path = "$APPDATA"
[[permission.scope.allow]]
path = "$APPDATA/*"

Expand All @@ -24,7 +28,7 @@ identifier = "scope-appdata-index"
description = "This scope permits to list all files and folders in the `$APPDATA`folder."

[[permission.scope.allow]]
path = "$APPDATA/"
path = "$APPDATA"

# Sets Section
# This section combines the scope elements with enablement of commands
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@
identifier = "scope-applocaldata-recursive"
description = "This scope permits recursive access to the complete `$APPLOCALDATA` folder, including sub directories and files."

[[permission.scope.allow]]
path = "$APPLOCALDATA"
[[permission.scope.allow]]
path = "$APPLOCALDATA/**"

[[permission]]
identifier = "scope-applocaldata"
description = "This scope permits access to all files and list content of top level directories in the `$APPLOCALDATA`folder."

[[permission.scope.allow]]
path = "$APPLOCALDATA"
[[permission.scope.allow]]
path = "$APPLOCALDATA/*"

Expand All @@ -24,7 +28,7 @@ identifier = "scope-applocaldata-index"
description = "This scope permits to list all files and folders in the `$APPLOCALDATA`folder."

[[permission.scope.allow]]
path = "$APPLOCALDATA/"
path = "$APPLOCALDATA"

# Sets Section
# This section combines the scope elements with enablement of commands
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@
identifier = "scope-applog-recursive"
description = "This scope permits recursive access to the complete `$APPLOG` folder, including sub directories and files."

[[permission.scope.allow]]
path = "$APPLOG"
[[permission.scope.allow]]
path = "$APPLOG/**"

[[permission]]
identifier = "scope-applog"
description = "This scope permits access to all files and list content of top level directories in the `$APPLOG`folder."

[[permission.scope.allow]]
path = "$APPLOG"
[[permission.scope.allow]]
path = "$APPLOG/*"

Expand All @@ -24,7 +28,7 @@ identifier = "scope-applog-index"
description = "This scope permits to list all files and folders in the `$APPLOG`folder."

[[permission.scope.allow]]
path = "$APPLOG/"
path = "$APPLOG"

# Sets Section
# This section combines the scope elements with enablement of commands
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@
identifier = "scope-audio-recursive"
description = "This scope permits recursive access to the complete `$AUDIO` folder, including sub directories and files."

[[permission.scope.allow]]
path = "$AUDIO"
[[permission.scope.allow]]
path = "$AUDIO/**"

[[permission]]
identifier = "scope-audio"
description = "This scope permits access to all files and list content of top level directories in the `$AUDIO`folder."

[[permission.scope.allow]]
path = "$AUDIO"
[[permission.scope.allow]]
path = "$AUDIO/*"

Expand All @@ -24,7 +28,7 @@ identifier = "scope-audio-index"
description = "This scope permits to list all files and folders in the `$AUDIO`folder."

[[permission.scope.allow]]
path = "$AUDIO/"
path = "$AUDIO"

# Sets Section
# This section combines the scope elements with enablement of commands
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@
identifier = "scope-cache-recursive"
description = "This scope permits recursive access to the complete `$CACHE` folder, including sub directories and files."

[[permission.scope.allow]]
path = "$CACHE"
[[permission.scope.allow]]
path = "$CACHE/**"

[[permission]]
identifier = "scope-cache"
description = "This scope permits access to all files and list content of top level directories in the `$CACHE`folder."

[[permission.scope.allow]]
path = "$CACHE"
[[permission.scope.allow]]
path = "$CACHE/*"

Expand All @@ -24,7 +28,7 @@ identifier = "scope-cache-index"
description = "This scope permits to list all files and folders in the `$CACHE`folder."

[[permission.scope.allow]]
path = "$CACHE/"
path = "$CACHE"

# Sets Section
# This section combines the scope elements with enablement of commands
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@
identifier = "scope-config-recursive"
description = "This scope permits recursive access to the complete `$CONFIG` folder, including sub directories and files."

[[permission.scope.allow]]
path = "$CONFIG"
[[permission.scope.allow]]
path = "$CONFIG/**"

[[permission]]
identifier = "scope-config"
description = "This scope permits access to all files and list content of top level directories in the `$CONFIG`folder."

[[permission.scope.allow]]
path = "$CONFIG"
[[permission.scope.allow]]
path = "$CONFIG/*"

Expand All @@ -24,7 +28,7 @@ identifier = "scope-config-index"
description = "This scope permits to list all files and folders in the `$CONFIG`folder."

[[permission.scope.allow]]
path = "$CONFIG/"
path = "$CONFIG"

# Sets Section
# This section combines the scope elements with enablement of commands
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@
identifier = "scope-data-recursive"
description = "This scope permits recursive access to the complete `$DATA` folder, including sub directories and files."

[[permission.scope.allow]]
path = "$DATA"
[[permission.scope.allow]]
path = "$DATA/**"

[[permission]]
identifier = "scope-data"
description = "This scope permits access to all files and list content of top level directories in the `$DATA`folder."

[[permission.scope.allow]]
path = "$DATA"
[[permission.scope.allow]]
path = "$DATA/*"

Expand All @@ -24,7 +28,7 @@ identifier = "scope-data-index"
description = "This scope permits to list all files and folders in the `$DATA`folder."

[[permission.scope.allow]]
path = "$DATA/"
path = "$DATA"

# Sets Section
# This section combines the scope elements with enablement of commands
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@
identifier = "scope-desktop-recursive"
description = "This scope permits recursive access to the complete `$DESKTOP` folder, including sub directories and files."

[[permission.scope.allow]]
path = "$DESKTOP"
[[permission.scope.allow]]
path = "$DESKTOP/**"

[[permission]]
identifier = "scope-desktop"
description = "This scope permits access to all files and list content of top level directories in the `$DESKTOP`folder."

[[permission.scope.allow]]
path = "$DESKTOP"
[[permission.scope.allow]]
path = "$DESKTOP/*"

Expand All @@ -24,7 +28,7 @@ identifier = "scope-desktop-index"
description = "This scope permits to list all files and folders in the `$DESKTOP`folder."

[[permission.scope.allow]]
path = "$DESKTOP/"
path = "$DESKTOP"

# Sets Section
# This section combines the scope elements with enablement of commands
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@
identifier = "scope-document-recursive"
description = "This scope permits recursive access to the complete `$DOCUMENT` folder, including sub directories and files."

[[permission.scope.allow]]
path = "$DOCUMENT"
[[permission.scope.allow]]
path = "$DOCUMENT/**"

[[permission]]
identifier = "scope-document"
description = "This scope permits access to all files and list content of top level directories in the `$DOCUMENT`folder."

[[permission.scope.allow]]
path = "$DOCUMENT"
[[permission.scope.allow]]
path = "$DOCUMENT/*"

Expand All @@ -24,7 +28,7 @@ identifier = "scope-document-index"
description = "This scope permits to list all files and folders in the `$DOCUMENT`folder."

[[permission.scope.allow]]
path = "$DOCUMENT/"
path = "$DOCUMENT"

# Sets Section
# This section combines the scope elements with enablement of commands
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@
identifier = "scope-download-recursive"
description = "This scope permits recursive access to the complete `$DOWNLOAD` folder, including sub directories and files."

[[permission.scope.allow]]
path = "$DOWNLOAD"
[[permission.scope.allow]]
path = "$DOWNLOAD/**"

[[permission]]
identifier = "scope-download"
description = "This scope permits access to all files and list content of top level directories in the `$DOWNLOAD`folder."

[[permission.scope.allow]]
path = "$DOWNLOAD"
[[permission.scope.allow]]
path = "$DOWNLOAD/*"

Expand All @@ -24,7 +28,7 @@ identifier = "scope-download-index"
description = "This scope permits to list all files and folders in the `$DOWNLOAD`folder."

[[permission.scope.allow]]
path = "$DOWNLOAD/"
path = "$DOWNLOAD"

# Sets Section
# This section combines the scope elements with enablement of commands
Expand Down
Loading
Loading