in jupyter-gcs-contents-manager/gcs_contents_manager.py [0:0]
def rename_checkpoint(self, checkpoint_id, old_path, new_path):
checkpoint_manager, old_relative_path = self._checkpoint_manager_for_path(
old_path)
new_checkpoint_manager, new_relative_path = self._checkpoint_manager_for_path(
new_path)
if new_checkpoint_manager != checkpoint_manager:
raise HTTPError(
400, 'Unsupported rename across file systems: {}->{}'.format(
old_path, new_path))
return checkpoint_manager.rename_checkpoint(checkpoint_id,
old_relative_path,
new_relative_path)