record_remote#

brainglobe_atlasapi.remotes.record_remote(cache_dir, remote)[source]#

Record which remote a cache directory mirrors, if unrecorded.

Called only once the directory holds an atlas, so a failed lookup (a typo’d remote or atlas name) never claims the directory.

Parameters:
  • cache_dir (Path) – Local cache directory for remote.

  • remote (str) – Remote, without a trailing slash.

Return type:

None