Closed snehasi closed 5 years ago
Solves #36
Added get_repo_file(repo_url, file_name, file_type, post_func=None)
get_repo_file(repo_url, file_name, file_type, post_func=None)
Introduced two more arguments file_type and post_func
file_type
post_func
.temp
file_name
Also added get_file_location function to generate file location from file_type.
get_file_location
Would appreciate reviews.
Thanks!
Cool, I'll review this tomorrow. 👍
Solves #36
Added
get_repo_file(repo_url, file_name, file_type, post_func=None)
Introduced two more arguments
file_type
andpost_func
file_type
is used for determining location of file in.temp
folder - having this argument allows for flexibility withfile_name
in repospost_func
is reference to a function that is applied to the file after its download.Also added
get_file_location
function to generate file location fromfile_type
.Would appreciate reviews.
Thanks!