We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2538a6 commit 4b06f5dCopy full SHA for 4b06f5d
src/icon.rs
@@ -45,6 +45,7 @@ impl Icons {
45
FileType::CharDevice => &t.filetype.device_char,
46
FileType::BlockDevice => &t.filetype.device_block,
47
FileType::Special => &t.filetype.special,
48
+ FileType::Directory { .. } => &t.filetype.dir,
49
_ => {
50
if let Some(icon) = t.name.get(name.file_name().to_lowercase().as_str()) {
51
icon
@@ -55,7 +56,6 @@ impl Icons {
55
56
57
} else {
58
match file_type {
- FileType::Directory { .. } => &t.filetype.dir,
59
// If a file has no extension and is executable, show an icon.
60
// Except for Windows, it marks everything as an executable.
61
#[cfg(not(windows))]
0 commit comments