-
Notifications
You must be signed in to change notification settings - Fork 80
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
Eliminate whole file chunks #323
Conversation
I tested it with unblob-handlers in different configurations and it works as expected. I'd leave the review to either @vlaci or @martonilles 😎 |
b459170
to
9d2e90d
Compare
We have had a conversation about this and the current branch removes also intermediate extracted files which should be kept. We just want to skip the carving, but not the extraction part. Probably it would make sense to separate more explicitly the carve and extract phases. |
97e70d4
to
92f7b55
Compare
92f7b55
to
cd27a9d
Compare
dae1a1d
to
4ccda47
Compare
This is done with the below script and looking through the resulting git change. $ cat recreate_outputs.sh #!/bin/bash set -e cd tests/integration find -name __output__ | xargs rm -rf find -name __input__ | while read input; do ( cd "$input" mkdir ../__output__ cd ../__output__ find ../__input__ -type f | while read fw; do unblob --keep-extracted-chunks "$fw" done ) done # empty, but extracted directories find -type d | rg __output__ | while read dir; do rmdir --ignore-fail-on-non-empty "$dir" if [ ! -d "$dir" ]; then mkdir "$dir" touch "$dir/.gitkeep" fi done git add .
4ccda47
to
3b5f2d0
Compare
resolves #303