mirror of
https://github.com/bobwen-dev/hunter
synced 2025-04-12 00:55:41 +02:00
show hidden files before regular folders
This commit is contained in:
parent
0299393806
commit
4e9b0842f3
@ -115,7 +115,7 @@ impl Files {
|
||||
|
||||
if self.dirs_first {
|
||||
self.files.sort_by(|a, b| {
|
||||
if a.is_dir() && !b.is_dir() {
|
||||
if a.is_dir() && !b.is_dir() && a.name.starts_with(".") {
|
||||
Ordering::Less
|
||||
} else {
|
||||
Ordering::Equal
|
||||
|
Loading…
x
Reference in New Issue
Block a user