check_remote#

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

Check a cache directory does not mirror a different remote.

Two remotes sharing a last URL segment map to the same directory; the record written by record_remote keeps them from mixing.

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

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

Raises:

ValueError – If the directory already records a different remote.

Return type:

None