feat(core): recursive fs scope on directory file-drop event (#954)

* allow recursive fs scope on directory file-drop events

* Create allow-recursive-fs-scope-on-file-drop-directory.md

* Update .changes/allow-recursive-fs-scope-on-file-drop-directory.md
This commit is contained in:
i-c-b
2024-02-15 09:55:51 -05:00
committed by GitHub
parent 531123cad0
commit 2f0e30852a
2 changed files with 6 additions and 1 deletions
@@ -0,0 +1,5 @@
---
"fs": 'patch'
---
A file-drop now allows sub-directories recursively when the path is a directory.
+1 -1
View File
@@ -120,7 +120,7 @@ pub fn init<R: Runtime>() -> TauriPlugin<R, Option<config::Config>> {
if path.is_file() {
scope.allow_file(path);
} else {
scope.allow_directory(path, false);
scope.allow_directory(path, true);
}
}
}