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

Master #89

Closed
wants to merge 8 commits into from
Closed

Master #89

wants to merge 8 commits into from

Conversation

antonhagg
Copy link

Added functionality for folder download.
Added functionality for hash checking when downloading.
Resolve #72
Resolve #73
Resolve #78
Resolve #85
Resolve #86
Resolve #87
Resolve #88

Added functionality for hash check when downloading files.
Added functionality for folder download.
@havardgulldahl
Copy link
Owner

Ok, @antonhagg, thanks for all your work. I'll take a look.

Fixed errors that was caused by zero files and if path to file was to
long
… files from any root path

Fixed havardgulldahl#103, Strange behavior when downloading file within a folder that
contains "+" signs. Now it handles quotes correctly even in stream.

Included functionality to download files and folders from any root path.
It will preserve the hirarchy that is at the jotta servers.
if "?mode=list" in url: #Check if we are requested a full tree of the directory
if os.path.exists('temp.xml'):
os.remove('temp.xml')
with open("temp.xml", "w") as text_file:
Copy link
Owner

Choose a reason for hiding this comment

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

Could you update this to use tempfile.NamedTemporaryFile() instead?

Copy link
Author

Choose a reason for hiding this comment

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

Should be possible. It has been good to have the xml for debugging.

Had some issues with Incomplete files so have done some changes to fix
this
havardgulldahl added a commit that referenced this pull request Aug 29, 2016
Closes #119
closes #73
closes #78
Thanks a million, @antonhagg
havardgulldahl added a commit that referenced this pull request Aug 29, 2016
havardgulldahl added a commit that referenced this pull request Aug 29, 2016
@havardgulldahl
Copy link
Owner

havardgulldahl commented Aug 29, 2016

So, @antonhagg, I have gone through the code now feature by feature, and added everything and rewrote parts of it.

May I suggest next time you keep your commits to one feature at a time? It makes it much easier to follow both how your patch evolved, and to pull in your stuff.

But don't take this the wrong way. I really appreciate your time. Please keep contributing, your efforts are really helpful 👍

@antonhagg
Copy link
Author

Wow, cool! =)
Since this is the first time I gave a shot at Python, i kinda expectet that it would need some modification and cleanup.
Also, I see the problem with adding all features in one bulk can make it hard to track individual things. I kinda lost overview myself after a while, so I'm impressed that you had a go at it.

I appriciate the feedback, in still learing. =)

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