-
Notifications
You must be signed in to change notification settings - Fork 6
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
adding new from_github vehicle method #86
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
} | ||
Ok(vehicle_name_list) | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool!
let url = &object.url; | ||
let vehicle_name_sublist = fetch_github_list(Some(url.to_owned()))?; | ||
for name in vehicle_name_sublist.iter() { | ||
vehicle_name_list.push(name.to_owned()); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@robinsteuteville Would this only look one level deep into directories?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kylecarow I believe it should look as many levels deep into directories as needed, since it calls fetch_github_list recursively within itself, which should mean that each time it comes across a subdirectory within the current directory it is in, it should start the process over again for that subdirectory, which in turn will uncover any subsubdirectories, etc. Does make my brain hurt a bit, so if you see a problem within the recursive logic let me know, I definitely could be thinking about it wrong!
@@ -39,6 +39,9 @@ include_dir = "0.7.3" | |||
itertools = "0.12.0" | |||
ndarray-stats = "0.5.1" | |||
tempfile = "3.8.1" | |||
url = "2.5.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kylecarow, could you feature gate this stuff?
No description provided.