caterva2.Dataset.download#

Dataset.download()#

Download a file.

Returns:

The path to the downloaded file.

Return type:

PosixPath

Examples

>>> root = cat2.Root('foo')
>>> file = root['ds-1d.b2nd']
>>> file.download()
PosixPath('foo/ds-1d.b2nd')