@@ -143,7 +143,7 @@ pub(crate) async fn open<R: Runtime>(
143143 for folder in folders {
144144 if let Ok ( path) = folder. clone ( ) . into_path ( ) {
145145 if let Some ( s) = window. try_fs_scope ( ) {
146- let _ = s. allow_directory ( & path, options. recursive ) ;
146+ s. allow_directory ( & path, options. recursive ) ? ;
147147 }
148148 tauri_scope. allow_directory ( & path, options. directory ) ?;
149149 }
@@ -157,7 +157,7 @@ pub(crate) async fn open<R: Runtime>(
157157 if let Some ( folder) = & folder {
158158 if let Ok ( path) = folder. clone ( ) . into_path ( ) {
159159 if let Some ( s) = window. try_fs_scope ( ) {
160- let _ = s. allow_directory ( & path, options. recursive ) ;
160+ s. allow_directory ( & path, options. recursive ) ? ;
161161 }
162162 tauri_scope. allow_directory ( & path, options. directory ) ?;
163163 }
@@ -175,7 +175,7 @@ pub(crate) async fn open<R: Runtime>(
175175 for file in files {
176176 if let Ok ( path) = file. clone ( ) . into_path ( ) {
177177 if let Some ( s) = window. try_fs_scope ( ) {
178- let _ = s. allow_file ( & path) ;
178+ s. allow_file ( & path) ? ;
179179 }
180180
181181 tauri_scope. allow_file ( & path) ?;
@@ -190,7 +190,7 @@ pub(crate) async fn open<R: Runtime>(
190190 if let Some ( file) = & file {
191191 if let Ok ( path) = file. clone ( ) . into_path ( ) {
192192 if let Some ( s) = window. try_fs_scope ( ) {
193- let _ = s. allow_file ( & path) ;
193+ s. allow_file ( & path) ? ;
194194 }
195195 tauri_scope. allow_file ( & path) ?;
196196 }
@@ -232,7 +232,7 @@ pub(crate) async fn save<R: Runtime>(
232232 if let Some ( p) = & path {
233233 if let Ok ( path) = p. clone ( ) . into_path ( ) {
234234 if let Some ( s) = window. try_fs_scope ( ) {
235- let _ = s. allow_file ( & path) ;
235+ s. allow_file ( & path) ? ;
236236 }
237237 tauri_scope. allow_file ( & path) ?;
238238 }
0 commit comments