mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
[PR #401] [MERGED] Fix -x option behavior #466
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/bootandy/dust/pull/401
Author: @rindeal
Created: 5/27/2024
Status: ✅ Merged
Merged: 6/27/2024
Merged by: @bootandy
Base:
master← Head:get_filesystem_devices📝 Commits (4)
4473ccfFix -x option behaviorc44a9d6streamline func APIs processing target_dirs845317ctest_exact_output: refactor unreadable directory handling09b8de9test_exact_output: simplify array handling📊 Changes
5 files changed (+66 additions, -54 deletions)
View changed files
📝
src/dir_walker.rs(+1 -1)📝
src/main.rs(+2 -2)📝
src/platform.rs(+13 -12)📝
src/utils.rs(+12 -12)📝
tests/test_exact_output.rs(+38 -27)📄 Description
This PR addresses an issue where
target_dirswere being optimized out before being passed to theget_filesystem_devices()function. The changes in this PR ensure thattarget_dirsare passed directly toget_filesystem_devices(), and only then are they simplified.Example of a command that currently doesn't work correctly:
It should show the usage of all tmpfs mounts, but it currently shows just the the root mountpoints like
/run, since all the mountpoints nested under it are optimized out.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.