File.LinkError exception (Elixir v1.19.0-dev)
View SourceAn exception that is raised when linking a file fails.
For example, this exception is raised when trying to link to file that isn't present:
iex> File.ln!("source.txt", "target.txt")
** (File.LinkError) could not create hard link from "source.txt" to "target.txt": no such file or directory
The following fields of this exception are public and can be accessed freely:
:existing
(Path.t/0
) - the existing file to link:new
(Path.t/0
) - the link destination:reason
(File.posix/0
) - the reason why the file could not be linked