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: Handle duplicate dir names better #470

Merged
merged 1 commit into from
Feb 20, 2025
Merged

feat: Handle duplicate dir names better #470

merged 1 commit into from
Feb 20, 2025

Conversation

bootandy
Copy link
Owner

@bootandy bootandy commented Feb 5, 2025

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: #441

} else {
top_level_nodes
}
}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a test for this using below dup_name folders

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
@bootandy bootandy merged commit 137e366 into master Feb 20, 2025
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant