mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-07-24 17:20:51 +02:00
feat(fs): add the size method to get the size of a file or directory (#2095)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# Automatically generated - DO NOT EDIT!
|
||||
|
||||
"$schema" = "../../schemas/schema.json"
|
||||
|
||||
[[permission]]
|
||||
identifier = "allow-size"
|
||||
description = "Enables the size command without any pre-configured scope."
|
||||
commands.allow = ["size"]
|
||||
|
||||
[[permission]]
|
||||
identifier = "deny-size"
|
||||
description = "Denies the size command without any pre-configured scope."
|
||||
commands.deny = ["size"]
|
||||
@@ -3410,6 +3410,32 @@ Denies the seek command without any pre-configured scope.
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
`fs:allow-size`
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
Enables the size command without any pre-configured scope.
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
`fs:deny-size`
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
Denies the size command without any pre-configured scope.
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
`fs:allow-stat`
|
||||
|
||||
</td>
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
[[permission]]
|
||||
identifier = "read-meta"
|
||||
description = "This enables all index or metadata related commands without any pre-configured accessible paths."
|
||||
commands.allow = ["read_dir", "stat", "lstat", "fstat", "exists"]
|
||||
commands.allow = ["read_dir", "stat", "lstat", "fstat", "exists", "size"]
|
||||
|
||||
@@ -1589,6 +1589,16 @@
|
||||
"type": "string",
|
||||
"const": "deny-seek"
|
||||
},
|
||||
{
|
||||
"description": "Enables the size command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "allow-size"
|
||||
},
|
||||
{
|
||||
"description": "Denies the size command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "deny-size"
|
||||
},
|
||||
{
|
||||
"description": "Enables the stat command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
|
||||
Reference in New Issue
Block a user