riptree2 0.9.0

riptree2 is a Rust rewrite of the Unix tree command. It aims to be a drop in replacement (`alias tree="rt --compat"`) with some quality of life improvements, such as automatically respecting ignore files.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::cmp::Ordering;

use crate::entry::Entry;

pub fn default_sorter(a: &Entry, b: &Entry) -> Ordering {
    a.file_name().cmp(b.file_name())

    // Folders last
    // match (
    //     a.file_type().unwrap().is_dir(),
    //     b.file_type().unwrap().is_dir(),
    // ) {
    //     (true, false) => Ordering::Greater,
    //     (false, true) => Ordering::Less,
    //     _ => a.file_name().cmp(&b.file_name()),
    // }
}