summaryrefslogtreecommitdiffstats
path: root/src/traverse.rs
AgeCommit message (Collapse)Author
2024-01-14Traverse children vs parent & fix parent node size after refreshPiotr Wach
2024-01-09refactorSebastian Thiel
- avoid `app_` prefix in `app` module. - cleanup root-index logic a little
2024-01-08clippyPiotr Wach
2024-01-08Fixed testsPiotr Wach
2024-01-08clippyPiotr Wach
2024-01-08New TraversalPiotr Wach
2024-01-07fmtPiotr Wach
2024-01-07clippyPiotr Wach
2024-01-07remove commented out codePiotr Wach
2024-01-07cargo fmtPiotr Wach
2024-01-07wipPiotr Wach
2024-01-05refactorSebastian Thiel
2024-01-05Optimize UI responsiveness during scanning stateCyandev
2023-12-23use `gix-glob` for matching; support for matching dirs only.Sebastian Thiel
That way, git-like globs can be used which support nice extras, like searching for directories only.
2023-12-11fix: EntryData size test passes on 32-bit (#197)cinerea0
EntryData doesn't need to be exactly 80 to test memory consumption, just less than it.
2023-12-09assure sorting of entry-counts takes files into consideration.Sebastian Thiel
Those don't have a count in that sense, and that needs to be visible when sorting. Now files, which naturally have no count, will sort alphabetically instead which seems most natural, as they are technically out of scope.
2023-12-09refactorSebastian Thiel
* copy when possible * mild function renames * restore previous sorting direction precedence
2023-12-08Adds keybinding for 'c' to toggle sorting by number of itemsPiotr Wach
2023-12-06thanks clippySebastian Thiel
2023-11-24Fix tests on WindowsPiotr Wach
2023-11-24Hide mtime column by default, unless enabledPiotr Wach
2023-11-24Adds keybinding 'm' to toggle sorting by modified timePiotr Wach
2023-11-24Add test to assure memory consumption of EntryData doesn't change unexpectedly.Sebastian Thiel
2023-05-05feat: TUI now shows performance metrics while scanning and after.Sebastian Thiel
This is in preparation for the `moonwalk` upgrade.
2023-05-05thanks clippySebastian Thiel
2023-05-05Simplify GUI refreshes by using a throttleSebastian Thiel
2023-02-22traverse: don't recurse on cross-device filesystemsThomas Orozco
Like it says in the title. Right now, if you pass `-x`, dua doesn't count files on other devices, but it still enumerates them. However, a good reason to use `-x` is if you have network mounts that are slow, so this fixes that.
2022-05-12fix: Open interactive mode even if one of the input paths can't be read. (#124)Sebastian Thiel
Note that there can still be improvements in indicating which path failed. Also it will happily show an empty user interface in case all input paths are not readable.
2021-05-30Only fetch metadata for files for a speedupSebastian Thiel
2020-07-22Don't pay extra on linux for helping with #53Sebastian Thiel
2020-07-22Use full path for obtaining the 'real size on disk'Sebastian Thiel
This fixes a long standing issue on windows, #53, which relies on the full path to be used. On linux, it seems to be enough to use the meta-data, which is also passed along. On windows, the path seems to actually be used, explaining why it wonderously didn't work on windows before.
2020-07-02Use 'anyhow' instead of 'failure' to simplify code and reduce bloatSebastian Thiel
2020-07-02Use u128 for byte sizesThomas Hurst
Per issue #58, u64 is insufficient for use with very large sparse files. Enormous file sizes are also a common filesystem error trope, either from disk corruption or software bugs, and they're also conceivable with virtual filesystems. Handle this as gracefully as can be reasonably expected using 128-bit integers, which should be sufficient for most uses.
2020-05-04Add '-x' flag to not cross filesystemsSebastian Thiel
Fixes #3
2020-04-12fix clippy lintsSebastian Thiel
2020-03-29Allow initial scan to be interrupted properly…Sebastian Thiel
…which requires peeling through all the layers, but it's worth it.
2020-03-29Fix crashbug - division by zero…Sebastian Thiel
…thanks to a screenrecording, a short flash of the error is enough :D. Should remember that. Besides, div by zero is by now the most common reason for a crash.
2020-03-29phase one of refactoring nearly completeSebastian Thiel
2020-03-29cleanup 'quick-hack' done in 2.3.9 - much better nowSebastian Thiel
2020-03-27Truly don't follow symlinks unless they are the only top-level path.v2.3.9Sebastian Thiel
This is a brute-force hack which won't show them at all, there certainly is better ways if we would know if we expanded paths ourselves or not.
2020-03-26Considerably speed up dua interactive by allowing to use all (logical) coresSebastian Thiel
2020-03-24Update to filesize v0.2Thomas Hurst
2020-03-16jwalk 0.5 has landed - now we don't follow symlinks during traversal!Sebastian Thiel
2020-03-15Revert "Upgrade to jwalk 0.5; stop following symlinks during traversal"Sebastian Thiel
This reverts commit 4990fa4202f2b687ee2476efe0a406fdfe23fd96. Performance regression - it only uses a single thread for most of the iteration.
2020-03-15Upgrade to jwalk 0.5; stop following symlinks during traversalv2.3.4Sebastian Thiel
2020-02-22Rename 'count-links' to more descriptive 'count-hard-links'Sebastian Thiel
2020-02-22cargo fmtSebastian Thiel
2020-02-22Add hardlink tracking, and an option to disable itThomas Hurst
2020-02-22Add support for real/apparent sizeThomas Hurst
2019-07-21Show broken symlinks on the first level of iterationSebastian Thiel