Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 422 Bytes

root-directory-of-a-project.md

File metadata and controls

15 lines (11 loc) · 422 Bytes

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