Skip to content

Commit 58eeb8e

Browse files
authored
display directory with "." in name (#17)
1 parent c3e8f40 commit 58eeb8e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/ui/fs.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,14 @@ impl FsExplorer {
9494
for accept_suffix in self.accept_suffix.iter() {
9595
let path = entry.path();
9696
// println!("{:?}", path.display());
97-
if let Some(ext) = path.extension() {
97+
if path.is_dir() {
98+
dir_entries.push(entry);
99+
break;
100+
} else if let Some(ext) = path.extension() {
98101
if ext.to_string_lossy().ends_with(accept_suffix) {
99102
file_entries.push(entry);
100103
break;
101104
}
102-
} else if path.is_dir() {
103-
dir_entries.push(entry);
104-
break;
105105
}
106106
}
107107
}

0 commit comments

Comments
 (0)