mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
[GH-ISSUE #41] Incorrect position of folder where prefix is identical to filename #17
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?
Originally created by @b-hahn on GitHub (Dec 4, 2019).
Original GitHub issue: https://github.com/bootandy/dust/issues/41
Thanks for the nice work on dust!
I ran into an issue on Ubuntu 18.04 where I have a folder called folder.bag.map and a file called file.bag. The resulting dust output when run in the parent folder is:
i.e. it seems like the file file.bag is treated like a folder and folder.bag.map is treated as a subfolder of the file. Maybe there's a parsing issue here somewhere?
@bootandy commented on GitHub (Dec 5, 2019):
Hi,
If you mean the file is called 'folder.bag' so it is a substring of the folder name 'folder.bag.map' then I can reproduce this.
I can not reproduce this with a file called 'file.bag' at the same level as a folder called 'folder.bag.map'
Can I ask which version of dust you are running (dust --version) - If there is no output it is old as it is pre 0.4.
@bootandy commented on GitHub (Dec 5, 2019):
I thought this was fixed with:
https://github.com/bootandy/dust/commit/6e03dd77e61d7a479e653dc5e5031372f05fe0c8
but I was clearly wrong
@bootandy commented on GitHub (Dec 5, 2019):
I think this commit reintroduced this bug :
db6c8a0