docs: def activate(self, path, isdirectory):
          """
          Set up a boto connection.
          """
          from .utils import connection_with_anon, connection_with_gs
  
          parsed = BotoClient.parse_query(path)
  
          scheme = parsed[0]
          bucket_name = parsed[1]
          key = parsed[2]
  
          if scheme == 's3' or scheme == 's3n':
              conn = connection_with_anon(self.credentials)
              bucket = conn.get_bucket(bucket_name)
          elif scheme == 'gs':
              conn = connection_with_gs(bucket_name)
              bucket = conn.get_bucket()
          else:
              raise NotImplementedError("No file reader implementation for URL scheme " + scheme)
  
          if isdirectory and (not key.endswith("/")):
              key += "/"
  
          self._scheme = scheme
          self._conn = conn
          self._key = key
          self._bucket = bucket
          self._active = True