mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-22 21:30:44 +02:00
refactor(fs)!: remove read_text_file and write_text_file commands (#3605)
`readTextFile` and `writeTextFile` now go through `read_file` and `write_file`, so the `allow-read-text-file`, `deny-read-text-file`, `allow-write-text-file` and `deny-write-text-file` permissions are gone; grant `fs:allow-read-file` and `fs:allow-write-file` instead.
This commit is contained in:
@@ -330,32 +330,6 @@ Denies the read_file command without any pre-configured scope.
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
`fs:allow-read-text-file`
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
Enables the read_text_file command without any pre-configured scope.
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
`fs:deny-read-text-file`
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
Denies the read_text_file command without any pre-configured scope.
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
`fs:allow-read-text-file-lines-next`
|
||||
|
||||
</td>
|
||||
@@ -668,32 +642,6 @@ Denies the write command without any pre-configured scope.
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
`fs:allow-write-text-file`
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
Enables the write_text_file command without any pre-configured scope.
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
`fs:deny-write-text-file`
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
Denies the write_text_file command without any pre-configured scope.
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
`fs:allow-app-read-recursive`
|
||||
|
||||
</td>
|
||||
|
||||
@@ -8,7 +8,6 @@ commands.allow = [
|
||||
"read_file",
|
||||
"read",
|
||||
"open",
|
||||
"read_text_file",
|
||||
"read_text_file_lines",
|
||||
"read_text_file_lines_next",
|
||||
"seek",
|
||||
|
||||
@@ -9,7 +9,6 @@ specific base directories.
|
||||
permissions = [
|
||||
"allow-read-dir",
|
||||
"allow-read-file",
|
||||
"allow-read-text-file",
|
||||
"allow-read-text-file-lines",
|
||||
"allow-read-text-file-lines-next",
|
||||
"allow-exists",
|
||||
|
||||
@@ -7,7 +7,6 @@ commands.allow = [
|
||||
"read_file",
|
||||
"read",
|
||||
"open",
|
||||
"read_text_file",
|
||||
"read_text_file_lines",
|
||||
"read_text_file_lines_next",
|
||||
"seek",
|
||||
|
||||
@@ -13,5 +13,4 @@ commands.allow = [
|
||||
"ftruncate",
|
||||
"write",
|
||||
"write_file",
|
||||
"write_text_file",
|
||||
]
|
||||
|
||||
@@ -12,5 +12,4 @@ commands.allow = [
|
||||
"ftruncate",
|
||||
"write",
|
||||
"write_file",
|
||||
"write_text_file",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user