mirror of https://github.com/bobwen-dev/hunter
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…
Reference in New Issue