You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/fs_service/search/tree.rs
+6-8Lines changed: 6 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -67,10 +67,10 @@ impl FileSystemService {
67
67
*current_count += 1;
68
68
69
69
// Check if we've exceeded max_files (if set)
70
-
ifletSome(max) = max_files{
71
-
if*current_count > max{
72
-
continue;// Skip this entry but continue processing others
73
-
}
70
+
ifletSome(max) = max_files
71
+
&&*current_count > max
72
+
{
73
+
continue;// Skip this entry but continue processing others
74
74
}
75
75
76
76
letmut json_entry = json!({
@@ -191,10 +191,8 @@ impl FileSystemService {
191
191
.filter_map(|e| e.ok())
192
192
.all(|e| !e.file_type().is_file() || is_system_metadata_file(e.file_name()));// Directory is empty if no files are found in it or subdirs, ".DS_Store" will be ignores on Mac
193
193
194
-
if is_empty {
195
-
ifletSome(path_str) = entry.path().to_str(){
196
-
empty_dirs.push(path_str.to_string());
197
-
}
194
+
if is_empty && letSome(path_str) = entry.path().to_str(){
0 commit comments