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 ability to skip files based on extension. #695

Merged
merged 1 commit into from
Jan 3, 2024
Merged

Conversation

qkaiser
Copy link
Contributor

@qkaiser qkaiser commented Dec 24, 2023

As indicated in #647, the ability to skip files from being processed based on their extension seems to be the right approach.

@qkaiser
Copy link
Contributor Author

qkaiser commented Dec 24, 2023

Should also resolve #600 without having a blanket filtering of ar archives.

unblob/processing.py Outdated Show resolved Hide resolved
unblob/processing.py Outdated Show resolved Hide resolved
Copy link
Contributor

@e3krisztian e3krisztian left a comment

Choose a reason for hiding this comment

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

Neat!

For the record:

  • there is a built in set of extensions to skip on
  • user specified extensions overwrite the built in set
  • empty extension is supported, which would result in skipping extraction of files without extension
  • giving an invalid extension (not empty, and does not start with .) will disable the builtin extension skip list

- there is a built in set of extensions to skip on
- user specified extensions overwrite the built in set
- empty extension is supported, which would result in skipping extraction of files without extension
- giving an invalid extension (not empty, and does not start with .) will disable the builtin extension skip list

Co-authored-by: Krisztián Fekete <[email protected]>
@qkaiser
Copy link
Contributor Author

qkaiser commented Jan 3, 2024

Edited the commit message to include the bullet points listed by @e3krisztian

@qkaiser qkaiser enabled auto-merge January 3, 2024 11:01
@qkaiser qkaiser merged commit bcbf49e into main Jan 3, 2024
16 checks passed
@qkaiser qkaiser deleted the skip-extension branch January 3, 2024 11:04
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.

Extend --skip-magic option for better matching Do not extract Rust .rlib files
2 participants