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 cli option to determine output directory when extracting archives with pysapcar #24

Merged
merged 6 commits into from Jul 3, 2018

Conversation

okuuva
Copy link

@okuuva okuuva commented Jul 3, 2018

Fixes #23. Also fixes some linter naggings, upgrades deprecated optparse to argparse and handles some extraction corner cases without printing stack trace.

Oula Kuuva added 6 commits July 3, 2018 14:56
More pythonic, plus outdir option needs join() which would be very
ambiguous without context.
Methods to static, redundant dirname check, print statement to
logger.debug().
No changes to functionality, just future proofing.
mkdir barfs if archive contains /foo/bar/bash but not the intermediate
directory /foo/bar. makedirs creates intermediate directories as well as
the leaf dir.
@martingalloar martingalloar merged commit fbc5aba into OWASP:master Jul 3, 2018
@martingalloar
Copy link
Collaborator

Thanks, great addition and seem to be working great for this use case.

@okuuva okuuva deleted the outdir-cli-option branch December 11, 2018 14:34
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.

Specify output directory when extracting SAPCAR archives
2 participants