1 parent c3e8f40 commit 58eeb8eCopy full SHA for 58eeb8e
1 file changed
src/ui/fs.rs
@@ -94,14 +94,14 @@ impl FsExplorer {
94
for accept_suffix in self.accept_suffix.iter() {
95
let path = entry.path();
96
// println!("{:?}", path.display());
97
- if let Some(ext) = path.extension() {
+ if path.is_dir() {
98
+ dir_entries.push(entry);
99
+ break;
100
+ } else if let Some(ext) = path.extension() {
101
if ext.to_string_lossy().ends_with(accept_suffix) {
102
file_entries.push(entry);
103
break;
104
}
- } else if path.is_dir() {
- dir_entries.push(entry);
- break;
105
106
107
0 commit comments