*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit 77084d17 authored by Moser, Maximilian's avatar Moser, Maximilian
Browse files

Provide `download_all()` shorthand function

parent 86aa7a13
No related branches found
No related tags found
1 merge request!6v0.2.2
"""Library for connecting VRE of TU Wien with the research data repositories."""
from .api import DBRepo, InvenioRDM
from .auto import download, suggest_repository, upload
from .auto import download, download_all, suggest_repository, upload
__all__ = [
DBRepo,
InvenioRDM,
download,
download_all,
suggest_repository,
upload,
]
......@@ -149,6 +149,11 @@ def download(
service.clear_auth()
def download_all(url: str) -> List[str] | str | None:
"""Download all files from a URL."""
return download(url, all=True, interactive=False)
def upload(
file_path: str, url: Optional[str] = None
) -> Tuple[Optional[str], Optional[str], Optional[str]]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment