Set absolute pathname

In Ruby standard library exists function that returns an absolute pathname in file system.
How can i do that in Elixir?

Path.expand/1,2, it does not resolve symlinks though. At least not per documentation. I think you need to resolve them manually if you really need the fully resolved name.

You can also try https://hexdocs.pm/elixir/Path.html#absname/1

Thanks, but actually that is needed https://hexdocs.pm/elixir/Path.html#absname/2 :slight_smile:

OK, glad you found your solution

1 Like