diff options
author | rabite <rabite@posteo.de> | 2019-02-06 21:48:38 +0100 |
---|---|---|
committer | rabite <rabite@posteo.de> | 2019-02-06 21:48:38 +0100 |
commit | 4e9b0842f3a9166ac81da0fad1b884f09a0451a2 (patch) | |
tree | c1e2912dbaed68f0da2de4d322f773b1d25101df /src/files.rs | |
parent | 0299393806a26553d97ded98bbf64ce3704672c5 (diff) |
show hidden files before regular folders
Diffstat (limited to 'src/files.rs')
-rw-r--r-- | src/files.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/files.rs b/src/files.rs index 0f0f373..c9f3754 100644 --- a/src/files.rs +++ b/src/files.rs @@ -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 |