   end
 
   @doc """
-  Same as `chown/2`, but raises an exception in case of failure. Otherwise `:ok`.
+  Same as `chown/2`, but raises a `File.Error` exception in case of failure.
+  Otherwise `:ok`.
   """
   @spec chown!(Path.t(), non_neg_integer) :: :ok
   def chown!(path, uid) do

  end

  @doc """
  Same as `write/3` but raises an exception if it fails, returns `:ok` otherwise.
  """
  @spec write!(Path.t(), iodata, [mode]) :: :ok
  def write!(path, content, modes \\ []) do

  end

  @doc """
  The same as `copy/3` but raises a `File.CopyError` exception if it fails.
  Returns the `bytes_copied` otherwise.
  """
  @spec copy!(Path.t() | io_device, Path.t() | io_device, pos_integer | :infinity) ::
