Do you need the root directory of an elixir project? The File.cwd!/0arrow-up-right function can help.
File.cwd!/0
iex> File.cwd! "/home/dev/code/my_app"
Keep in mind though, this will only work reliably with projects that are compiled using Mix.
sourcearrow-up-right
Last updated 4 years ago