download_file

brainsets.utils.dandi_utils.download_file(path, url, raw_dir, overwrite=False)[source]

Download a file from DANDI

Full path of the downloaded path will be raw_dir / path.

Parameters:
  • path (str | Path) – path of the downloaded file within raw_dir

  • url (str) – URL of the DANDI asset

  • raw_dir (str | Path) – root directory where the file will be downloaded

  • overwrite (bool) – Will overwrite existing file if True (default False)

Return type:

Path