Attempt to add extract_dir specification #72
+10
−4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
This is to potentially close #71 and have downloaded files extract to the
path
specified by the user as the docs have me believe is what was intended to happen.Approach
I added
path
as a parameter to both extract functions and setextract_dir = path
in theshutil.unpack_archive
.Then I ran
python -m unittest discover tests -b
as the README said to do. I got three errors, but I also got those same three errors on the master branch, so I don't think they are related to the changes I made here.That being said, even though the changes didn't cause errors, I don't know if this will work correctly and I don't know how to test if it will fix #71.
Also don't even know if I am correct that #71 is a problem. ¯_(ツ)_/¯
Notes reviewers
You should look into my changes more carefully and make sure that they work. I am a Python newb and don't know what I'm doing. Also not very familiar with this code base. But I wanted to take a whack at it because I'd like this to work how the docs described it.