diff --git a/.changes/allow-recursive-fs-scope-on-file-drop-directory.md b/.changes/allow-recursive-fs-scope-on-file-drop-directory.md new file mode 100644 index 00000000..e1dfa670 --- /dev/null +++ b/.changes/allow-recursive-fs-scope-on-file-drop-directory.md @@ -0,0 +1,5 @@ +--- +"fs": 'patch' +--- + +A file-drop now allows sub-directories recursively when the path is a directory. diff --git a/plugins/fs/src/lib.rs b/plugins/fs/src/lib.rs index 5bd6545c..2c8843ff 100644 --- a/plugins/fs/src/lib.rs +++ b/plugins/fs/src/lib.rs @@ -120,7 +120,7 @@ pub fn init() -> TauriPlugin> { if path.is_file() { scope.allow_file(path); } else { - scope.allow_directory(path, false); + scope.allow_directory(path, true); } } }