mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 07:08:01 +00:00
422 B
422 B
Root Directory Of A Project
Do you need the root directory of an elixir project? The
File.cwd!/0
function can help.
iex> File.cwd!
"/home/dev/code/my_app"
Keep in mind though, this will only work reliably with projects that are compiled using Mix.