Skip to content

Commit 11a5816

Browse files
authored
feat(core): recursive asset scope on directory file-drop event (#8864)
* allow recursive asset scope on directory file-drop events * Create allow-recursive-asset-scope-on-file-drop-directory.md * Update .changes/allow-recursive-asset-scope-on-file-drop-directory.md
1 parent 3cee26a commit 11a5816

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri": 'patch:enhance'
3+
---
4+
5+
A file-drop now allows sub-directories recursively when the path is a directory.

core/tauri/src/manager/window.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ fn on_window_event<R: Runtime>(
212212
if path.is_file() {
213213
let _ = scopes.allow_file(path);
214214
} else {
215-
let _ = scopes.allow_directory(path, false);
215+
let _ = scopes.allow_directory(path, true);
216216
}
217217
}
218218
let payload = FileDropPayload { paths, position };

0 commit comments

Comments
 (0)