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

Fix the glob_ext() filesystem globbing function #489

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

pyrco
Copy link
Contributor

@pyrco pyrco commented Dec 22, 2023

When passed a pattern with path parts which did not contain any globs, the function would fail due to path strings instead of FilesystemEntry's being used.

Documentation and comments are added to the glob_ext*() functions and they are refactored a bit.

(DIS-2903)

@pyrco pyrco requested a review from Schamper December 22, 2023 15:26
Copy link

codecov bot commented Dec 22, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (47c83a3) 74.07% compared to head (09b5256) 74.08%.

Files Patch % Lines
dissect/target/helpers/fsutil.py 95.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #489   +/-   ##
=======================================
  Coverage   74.07%   74.08%           
=======================================
  Files         261      261           
  Lines       21110    21110           
=======================================
+ Hits        15638    15639    +1     
+ Misses       5472     5471    -1     
Flag Coverage Δ
unittests 74.08% <95.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@Schamper Schamper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe also add a unit test for the previously failing case?

@pyrco pyrco force-pushed the feature/dis-2903_filesystem-globbing-fixes branch from f8b9b92 to aba7798 Compare January 2, 2024 14:31
@pyrco pyrco requested a review from Schamper January 2, 2024 14:31
@Schamper
Copy link
Member

Schamper commented Jan 2, 2024

No regression unit test? 😄

@pyrco pyrco force-pushed the feature/dis-2903_filesystem-globbing-fixes branch from aba7798 to 7c6f5d3 Compare January 3, 2024 10:01
@pyrco
Copy link
Contributor Author

pyrco commented Jan 3, 2024

I added some tests 😉

When passed a pattern with path parts which did not contain any globs,
the function would fail due to path strings instead of FilesystemEntry's
being used.

Documentation and comments are added to the glob_ext*() functions and
they are refactored a bit.

(DIS-2903)
@pyrco pyrco force-pushed the feature/dis-2903_filesystem-globbing-fixes branch from 7c6f5d3 to 09b5256 Compare January 3, 2024 11:06
@pyrco pyrco merged commit 44c6613 into main Jan 3, 2024
@pyrco pyrco deleted the feature/dis-2903_filesystem-globbing-fixes branch January 3, 2024 11:15
Poeloe pushed a commit that referenced this pull request Feb 29, 2024
When passed a pattern with path parts which did not contain any globs,
the function would fail due to path strings instead of FilesystemEntry's
being used.

Documentation and comments are added to the glob_ext*() functions and
they are refactored a bit.

(DIS-2903)
Zawadidone pushed a commit to Zawadidone/dissect.target that referenced this pull request Apr 5, 2024
When passed a pattern with path parts which did not contain any globs,
the function would fail due to path strings instead of FilesystemEntry's
being used.

Documentation and comments are added to the glob_ext*() functions and
they are refactored a bit.

(DIS-2903)
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

Successfully merging this pull request may close these issues.

2 participants