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

add support for following symlinks #202

Closed
anarcat opened this issue Jan 22, 2023 · 0 comments · Fixed by #206
Closed

add support for following symlinks #202

anarcat opened this issue Jan 22, 2023 · 0 comments · Fixed by #206
Labels
enhancement New feature or request

Comments

@anarcat
Copy link

anarcat commented Jan 22, 2023

I am a user of git-annex which makes heavy use of symlinks to store large files. A gdu of my Photos disk looks like this:

 gdu ~ Use arrow keys to navigate, press ? for help                                                                                                          
 --- /media/sda3/Photos ---
                         /..                   
  487.1 GiB [######### ] /.git
   73.2 MiB [          ] /2018
   58.6 MiB [          ] /2019
[...]

... while ncdu -L (since 1.14) can provide a more accurate view:

ncdu 1.17 ~ Use the arrow keys to navigate, press ? for help
--- /media/sda3/Photos --------------------------------------------------------------------------------------------------------------------------------------
                                     /..
  487,1 GiB [######################] /.git
  153,3 GiB [######                ] /2018
  118,3 GiB [#####                 ] /2019

Of course, it double-counts the files then:

--- /media/sda3 ---------------------------------------------------------------------------------------------------------------------------------------------
        0,9 TiB [######################] /Photos

... instead of the more logical:

--- /media/sda3 ---------------------------------------------------------------------------------------------------------------------------------------------
  489,3 GiB [######################] /Photos

... but I'm fine with that, as that's to be expected. The patch for ncdu might be an inspiration for you, simple and easy...

let me know if you want one for gdu, i might be able to figure something out, even though i never peeked at the code so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants