You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, there's no simple way to fetch just one file from a project. There is download_file() API call, but it needs the project to be already downloaded (it is useful just to get older versions of a file).
One could either query MM server API directly, e.g.:
If we add support for this, maybe we could just update the existing download_file() implementation so that it will accept as the first argument either <workspace>/<project> or it would accept an existing the local directory with a project downloaded already.
The text was updated successfully, but these errors were encountered:
Yeah, this will be useful. There is problem if you call download_file , metadata of project must be there ... you have to call download_project before (:-O) . I think we need to update download_file method to accept project_id instead project_dir . Or create separated method to download file based on project path / id without need to get project_info.
Currently, there's no simple way to fetch just one file from a project. There is
download_file()
API call, but it needs the project to be already downloaded (it is useful just to get older versions of a file).One could either query MM server API directly, e.g.:
(with appropriate auth token)
Alternatively, using python with a workaround like this (handles auth stuff):
If we add support for this, maybe we could just update the existing
download_file()
implementation so that it will accept as the first argument either<workspace>/<project>
or it would accept an existing the local directory with a project downloaded already.The text was updated successfully, but these errors were encountered: