class_docstr: A path-like object for object storage.
class_docstr_tok: ["A","path-like","object","for","object","storage","."]
docstr: Rename this path to the target path, overwriting if that path exists.
  
  The target path may be absolute or relative. Relative paths are
  interpreted relative to the current working directory, *not* the
  directory of the Path object.
  
  Returns the new Path instance pointing to the target path.
docstr_tok: ["Rename","this","path","to","the","target","path",",","overwriting","if","that","path","exists",".","The","target","path","may","be","absolute","or","relative",".","Relative","paths","are","interpreted","relative","to","the","current","working","directory",",","*","not","*","the","directory","of","the","Path","object",".","Returns","the","new","Path","instance","pointing","to","the","target","path","."]
code: def replace(self, target) -> ObjectStoragePath:
      """
      Rename this path to the target path, overwriting if that path exists.
  
      The target path may be absolute or relative. Relative paths are
      interpreted relative to the current working directory, *not* the
      directory of the Path object.
  
      Returns the new Path instance pointing to the target path.
      """
      return self.rename(target, overwrite=True)
  
imports: from __future__ import annotations
  import contextlib
  import functools
  import os
  import shutil
  import typing
  from pathlib import PurePath
  from urllib.parse import urlsplit
  from fsspec.core import split_protocol
  from fsspec.utils import stringify_path
  from upath.implementations.cloud import CloudPath, _CloudAccessor
  from upath.registry import get_upath_class
  from airflow.io.store import attach
  from airflow.io.utils.stat import stat_result
label_desc: Use image node_id 12 for calling the ObjectStoragePath obj's underlying member method code with example usage: obj.replace(target) and returns: self