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

Check if some paths are contained within others, so as not to count them twice towards the total #12

Open
cauebs opened this issue Feb 2, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@cauebs
Copy link
Owner

cauebs commented Feb 2, 2020

No description provided.

@cauebs cauebs added the enhancement New feature or request label Feb 2, 2020
marcospb19 added a commit to marcospb19/durt that referenced this issue May 2, 2021
marcospb19 added a commit to marcospb19/durt that referenced this issue May 2, 2021
marcospb19 added a commit to marcospb19/durt that referenced this issue Dec 5, 2021
For the nested files:
 - folder/         (5 MB)
 - folder/big_file (15 MB)

The --total now outputs 15 MB instead of the previous 20 MB, because the
inner file is inside of the folder that was also passed as an argument.

Implemented with the Trie data structure, made of HashMap and PathBufs
that represent each path components of the canonicalized file paths.

Fixes cauebs#12.
marcospb19 added a commit to marcospb19/durt that referenced this issue Dec 6, 2021
For the nested files:
 - folder/         (5 MB)
 - folder/big_file (15 MB)

The --total now outputs 15 MB instead of the previous 20 MB, because the
inner file is inside of the folder that was also passed as an argument.

Implemented with the Trie data structure, made of HashMap and PathBufs
that represent each path components of the canonicalized file paths.

Fixes cauebs#12.
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.

1 participant