Skip to content

"Duplicate" hard links are skipped #133

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

Closed
NoraPerry opened this issue Apr 17, 2023 · 4 comments
Closed

"Duplicate" hard links are skipped #133

NoraPerry opened this issue Apr 17, 2023 · 4 comments

Comments

@NoraPerry
Copy link

NoraPerry commented Apr 17, 2023

If you have 2 or more files that are hard linked, erdtree will only display 1 of them.

e.g.

touch a
ln a b
et

will cause erdtree to output

mydirectory 
└─ b (0 B)

The issue also happens if the files are in different subdirectories.
e.g.

mkdir 1
mkdir 2
touch 1/a
ln 1/a 2/b
et

will cause erdtree to output

mydirectory 
├─ 1 
│  └─ a (0 B)
└─ 2
@NoraPerry
Copy link
Author

Oh I just noticed it mentions this in the readme. Perhaps it could display them but not count towards the disk usage?

@solidiquis
Copy link
Owner

Yeah that's probably more sensible isn't it. I'll be sure to have a fix out for that in the next release :)

@solidiquis
Copy link
Owner

Just merged #136 into my work-in-progress v2.0 branch. If all goes well this will be included in the next release this Sunday :]

@solidiquis
Copy link
Owner

#131

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

No branches or pull requests

2 participants