[PR #470] [MERGED] feat: Handle duplicate dir names better #497

Closed
opened 2026-06-08 11:28:50 +03:00 by zhus · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/bootandy/dust/pull/470
Author: @bootandy
Created: 2/6/2025
Status: Merged
Merged: 2/21/2025
Merged by: @bootandy

Base: masterHead: same_dir_names2


📝 Commits (1)

  • 759658e feat: Handle duplicate dir names better

📊 Changes

6 files changed (+83 additions, -2 deletions)

View changed files

📝 src/display.rs (+1 -1)
📝 src/filter.rs (+65 -1)
📝 src/main.rs (+1 -0)
tests/test_dir_matching/andy/dup_name/hello (+0 -0)
tests/test_dir_matching/dave/dup_name/hello (+0 -0)
📝 tests/test_flags.rs (+16 -0)

📄 Description

If we run dust /usr/*/Trash
We see several 'Trash' directories in the output but do not know which user they belong to.

This fix means if we see duplicate names in a directory we will display the parent directory name as well

for: https://github.com/bootandy/dust/issues/441


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/bootandy/dust/pull/470 **Author:** [@bootandy](https://github.com/bootandy) **Created:** 2/6/2025 **Status:** ✅ Merged **Merged:** 2/21/2025 **Merged by:** [@bootandy](https://github.com/bootandy) **Base:** `master` ← **Head:** `same_dir_names2` --- ### 📝 Commits (1) - [`759658e`](https://github.com/bootandy/dust/commit/759658ee960ab0436ce69b981169cb5172a4568f) feat: Handle duplicate dir names better ### 📊 Changes **6 files changed** (+83 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/display.rs` (+1 -1) 📝 `src/filter.rs` (+65 -1) 📝 `src/main.rs` (+1 -0) ➕ `tests/test_dir_matching/andy/dup_name/hello` (+0 -0) ➕ `tests/test_dir_matching/dave/dup_name/hello` (+0 -0) 📝 `tests/test_flags.rs` (+16 -0) </details> ### 📄 Description If we run `dust /usr/*/Trash` We see several 'Trash' directories in the output but do not know which user they belong to. This fix means if we see duplicate names in a directory we will display the parent directory name as well for: https://github.com/bootandy/dust/issues/441 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
zhus added the pull-request label 2026-06-08 11:28:50 +03:00
zhus closed this issue 2026-06-08 11:28:51 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#497