1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 15:18:01 +00:00
Files
til/elixir/root-directory-of-a-project.md
2016-10-07 20:29:08 -05:00

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.

source