Skip to content

Commit ae9e025

Browse files
committed
feat!: remove special case for _ prefixed files in windows
On windows files prefixed with a `_` were being ignored because some old applications used those files as pseudo dotfiles. This was controversial when the feature was added way back when: ogham/exa#820 (review)
1 parent 2945fd0 commit ae9e025

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Diff for: src/fs/dir.rs

-7
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,6 @@ impl<'dir, 'ig> Files<'dir, 'ig> {
129129
continue;
130130
}
131131

132-
// Also hide _prefix files on Windows because it's used by old applications
133-
// as an alternative to dot-prefix files.
134-
#[cfg(windows)]
135-
if !self.dotfiles && filename.starts_with('_') {
136-
continue;
137-
}
138-
139132
if self.git_ignoring {
140133
let git_status = self.git.map(|g| g.get(&path, false)).unwrap_or_default();
141134
if git_status.unstaged == GitStatus::Ignored {

0 commit comments

Comments
 (0)