Giter VIP home page Giter VIP logo

Comments (8)

Byron avatar Byron commented on June 18, 2024 1

Thanks a lot for letting me know!

Indeed, it doesn't seem to work at all and I could reproduce it well. If it's that broken, and was at some point deemed working, maybe a test is missing for it as well.

from dua-cli.

edrozenberg avatar edrozenberg commented on June 18, 2024

I've never tried ignore before with dua so do not know if it ever worked :). Thanks for looking into it!

from dua-cli.

gosuwachu avatar gosuwachu commented on June 18, 2024

@edrozenberg This looks to work as expected. To pass multiple ignore directories you have to specify them separately, like this:

dua -i /System/Volumes/Data/Volumes -i /System/Volumes/Data interactive /

from dua-cli.

edrozenberg avatar edrozenberg commented on June 18, 2024

@edrozenberg This looks to work as expected. To pass multiple ignore directories you have to specify them separately, like this:

dua -i /System/Volumes/Data/Volumes -i /System/Volumes/Data interactive /

Thanks but this does not work as expected, still getting an incorrect double-counted result:

sudo dua -i /System/Volumes/Data/Volumes -i /System/Volumes/Data interactive /

dua results

from dua-cli.

gosuwachu avatar gosuwachu commented on June 18, 2024

I think I know where this bug is coming from. Try this instead:

sudo dua -i System/Volumes/Data/Volumes -i System/Volumes/Data interactive /

dua doesn't include the starting / in the path which was causing your ignored directories not to match. However on my mac dua still shows incorrect results - but probably for a different reason.

from dua-cli.

edrozenberg avatar edrozenberg commented on June 18, 2024

I think I know where this bug is coming from. Try this instead:

sudo dua -i System/Volumes/Data/Volumes -i System/Volumes/Data interactive /

dua doesn't include the starting / in the path which was causing your ignored directories not to match. However on my mac dua still shows incorrect results - but probably for a different reason.

Thanks this seems to work fine, but it shouldn't because if I don't include the / for each path it should not find them if my current directory is not in the root of the drive. But it does find them somehow. [edit] I see it finds them based on the starting directory given, /.

[~]$ sudo dua -i System/Volumes/Data/Volumes -i System/Volumes/Data interactive /

Somehow works

from dua-cli.

Byron avatar Byron commented on June 18, 2024

Thanks everyone for chiming in and for helping to solve this puzzle!

I can confirm that sudo dua -i System/Volumes/Data/Volumes -i System/Volumes/Data interactive / works for me.

I think in order to resolve this, dua should properly transform the paths to the format that it needs to make them work for it. That way, -i target/ , -i $PWD/target or -i target/ will all work the same.

from dua-cli.

Byron avatar Byron commented on June 18, 2024

This should be fixed with the latest release, and I wasn't able to reproduce the issue anymore with the new version either.

Please let us know if the issue persists.

from dua-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.