add thin create wrapper

This commit is contained in:
Justus Kuhlmann 2025-12-04 11:40:50 +01:00
commit 7240d29b46
Signed by: jkuhl
GPG key ID: 00ED992DD79B85A6
3 changed files with 15 additions and 1 deletions

View file

@ -27,3 +27,12 @@ def save(path: str, message: str, files: list[str]) -> None:
dl.save(files, message=message, dataset=path)
else:
raise ValueError(f"Tracker {tracker} is not supported.")
def create(path: str) -> None:
tracker = get_tracker(path)
if tracker == 'datalad':
dl.create(path)
else:
raise ValueError(f"Tracker {tracker} is not supported.")
return