# Elixir Blog Posts

**URL:** <https://forum.elixirforum.com/t/elixir-blog-posts/150>\
**Category:** Blog Posts\
**Tags:** blog-posts, wiki, stickies, official-blog-posts-thread\
**Created:** [April 30, 2017, 11:00pm UTC](https://forum.elixirforum.com/t/elixir-blog-posts/150 "2017-04-30T23:00:00Z")\
**Posts on this page:** 1\
**Showing post:** 184

<div class="post-metadata">

**Author:** ![michalmuskala](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/michalmuskala/32/20288_2.png) [@michalmuskala](https://forum.elixirforum.com/u/michalmuskala)\
**Post date:** [August 21, 2017, 10:03pm UTC](https://forum.elixirforum.com/t/elixir-blog-posts/150/184 "2017-08-21T22:03:05Z")

</div>

> [@OvermindDL1](#):
>
> To get the priv directory always use only :code.priv\_dir(:my\_app\_name)! Though ‘most’ of the time priv will be in the app’s directory, it ‘could’ also be elsewhere, renamed, and variety of other things, and as such this will break in certain situations (like, say, running from inside a tar file or so)… \>.\>

`Application.app_dir` does exactly the same `:code.priv_dir` does minus appending of the `priv` part. There is no difference between them.

---

_[View the full topic](https://forum.elixirforum.com/t/elixir-blog-posts/150)._
