Skip to content

Commit 91ebfeb

Browse files
Update apps/app/src-tauri/src/lib.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent ebce40c commit 91ebfeb

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

apps/app/src-tauri/src/lib.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,13 @@ fn build_tree_recursive_desktop(path_str: &str) -> std::io::Result<Vec<FileNode>
4747
let mut children = Vec::new();
4848

4949
if is_directory {
50-
if let Ok(sub_children) = build_tree_recursive_desktop(&path) {
51-
children = sub_children;
50+
match build_tree_recursive_desktop(&path) {
51+
Ok(sub_children) => {
52+
children = sub_children;
53+
}
54+
Err(e) => {
55+
eprintln!("Failed to read subdirectory '{}': {}", path, e);
56+
}
5257
}
5358
}
5459

0 commit comments

Comments
 (0)