diff --git a/src/fs/dir.rs b/src/fs/dir.rs index 7f7b067..1c9fb90 100644 --- a/src/fs/dir.rs +++ b/src/fs/dir.rs @@ -111,6 +111,13 @@ impl<'dir, 'ig> Files<'dir, 'ig> { continue; } + // Also hide _prefix files on Windows because it's used by old applications + // as an alternative to dot-prefix files. + #[cfg(windows)] + if ! self.dotfiles && filename.starts_with('_') { + continue; + } + if self.git_ignoring { let git_status = self.git.map(|g| g.get(path, false)).unwrap_or_default(); if git_status.unstaged == GitStatus::Ignored {