diff --git a/helix-term/src/ui/mod.rs b/helix-term/src/ui/mod.rs index 004c88361..089f8e971 100644 --- a/helix-term/src/ui/mod.rs +++ b/helix-term/src/ui/mod.rs @@ -356,7 +356,7 @@ fn directory_content(path: &Path) -> Result, std::io::Error .map(|entry| { ( entry.path(), - entry.file_type().is_ok_and(|file_type| file_type.is_dir()), + std::fs::metadata(entry.path()).is_ok_and(|metadata| metadata.is_dir()), ) }) .collect();