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

Error when downloading #6

Closed
Jerakin opened this issue Nov 20, 2018 · 1 comment
Closed

Error when downloading #6

Jerakin opened this issue Nov 20, 2018 · 1 comment

Comments

@Jerakin
Copy link

Jerakin commented Nov 20, 2018

Might be related to #4 (though I am on OSX)
Or maybe it doesn't work downloading from the "history" if a repo.

Trying to download the directory "raptor" from the directory/url
https://github.com/EsotericSoftware/spine-runtimes/tree/1c717e2d4402e69dd6fe81bf1bb3d8d6d0a58447/example

Gives me error

(37) ➜  ~ githubdl -u "https://github.com/EsotericSoftware/spine-runtimes/tree/1c717e2d4402e69dd6fe81bf1bb3d8d6d0a58447/example" -d "raptor"
2018-11-20 11:06:01,007 - root         - INFO     - Retrieving a list of files for directory: raptor
2018-11-20 11:06:01,007 - root         - INFO     - repo_name: EsotericSoftware/spine-runtimes/tree/1c717e2d4402e69dd6fe81bf1bb3d8d6d0a58447/example api_path: contents request_string: /raptor
2018-11-20 11:06:01,007 - root         - INFO     - Requesting file: raptor at url: https://api.github.com/repos/EsotericSoftware/spine-runtimes/tree/1c717e2d4402e69dd6fe81bf1bb3d8d6d0a58447/example/contents/raptor
2018-11-20 11:06:02,421 - root         - CRITICAL - Unable to retrieve list of files from response.
 Exception: 'str' object has no attribute 'get'
 Response: {'message': 'Not Found', 'documentation_url': 'https://developer.github.com/v3'}
@wilvk
Copy link
Owner

wilvk commented Nov 21, 2018

Hi @Jerakin , thanks for the feedback.

You'd use it as per the following to download that path for that commit reference:

githubdl -u "https://github.com/EsotericSoftware/spine-runtimes" -d "examples/raptor" -r 1c717e2d4402e69dd6fe81bf1bb3d8d6d0a58447

I've put in issue #7 to fix this and updated the readme for this case.

Cheers,
Will

@wilvk wilvk closed this as completed Nov 21, 2018
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

No branches or pull requests

2 participants