Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat/issue-306-pr #965

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Commits on Nov 9, 2022

  1. Configuration menu
    Copy the full SHA
    c1cc958 View commit details
    Browse the repository at this point in the history
  2. feat/issue-306-pr:

    `src/listing.rs`
    ===
    
    * Add `EntrySize` struct
    * Impl Display for EntrySize
    * Change `Option<bytesize::ByteSize>` to `EntrySize` in `Entry`
    * Add Entry::Directory size calculation utilizing WalkDir
    * Sort directory listings by always putting directories at the top and
      sorting files and directories based on their own semantics (ie. entry
      counts for directories and bytes for files)
    
    `src/renderer.rs`
    ===
    
    * Change `entry_raw` from using `if-let` to just operating on `entry.size`
    zamu-flowerpot committed Nov 9, 2022
    Configuration menu
    Copy the full SHA
    041adb7 View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2022

  1. feat/issue-306-pr:

    `Cargo.lock` & `Cargo.toml`
    ===
    
    * Remove `WalkDir`
    * Add `fs_extra`
    * Add `OnceCell`
    
    `src/listing.rs`
    ===
    
    * remove `use walkdir::WalkDir`
    * add HashMap, Arc, Mutex, OnceCell, log::warn, and `FILE_SIZE_CACHE`
    * Cargo fmt
    zamu-flowerpot committed Nov 21, 2022
    Configuration menu
    Copy the full SHA
    1c71e93 View commit details
    Browse the repository at this point in the history
  2. feat/issue-306-pr:

    `src/listing.rs`
    ===
    
    * Cargo fmt
    * Replace `WalkDir::new(entry.path()).into_iter().count()` with
      calculating directory size using `fs_extra::dir::get_size`
      * If `get_size` fails, fall back to `std::fs::read_dir` counting
    zamu-flowerpot committed Nov 21, 2022
    Configuration menu
    Copy the full SHA
    dc734c4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    70f8b3e View commit details
    Browse the repository at this point in the history