(self, target)
return self.__class__(target)
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.
Rename this path to the target path, overwriting if that path exists.
Rename this path to the target path overwriting if that path exists .
def replace(self, target):
        """
        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.
        """
        self._accessor.replace(self, target)
        return self.__class__(target)
def replace ( self , target ) : self . _accessor . replace ( self , target ) return self . __class__ ( target )