# How do I refer to the directory "one above" the current one?Context: I have a sc

**URL:** <https://discourse.julialang.org/t/how-do-i-refer-to-the-directory-one-above-the-current-one-context-i-have-a-sc/56264>\
**Category:** General Usage\
**Created:** [March 1, 2021, 4:40pm UTC](https://discourse.julialang.org/t/how-do-i-refer-to-the-directory-one-above-the-current-one-context-i-have-a-sc/56264 "2021-03-01T16:40:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BridgeBot](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bridgebot/32/21491_2.png) [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Post date:** [March 1, 2021, 4:40pm UTC](https://discourse.julialang.org/t/how-do-i-refer-to-the-directory-one-above-the-current-one-context-i-have-a-sc/56264/1 "2021-03-01T16:40:10Z")

</div>

How do I refer to the directory “one above” the current one?

Context: I have a script in `/src` and have `@ __DIR__ ` in that script. But I want to refer to the parent folder, the one containint the `Project.toml`. `joinpath(d, "..")` doesn’t work. My only solution so far is two `cd` commands, which is kind of ugly.

Note that the original poster on Slack cannot see your response here on Discourse. Consider _transcribing the appropriate answer back to Slack_, or pinging the poster here on Discourse so they can _follow this thread_.  
[(Original message :slack:)](https://julialang.slack.com/archives/C6A044SQH/p1614616795134700?thread_ts=1614616795.134700&cid=C6A044SQH) [(More Info)](https://github.com/JuliaCommunity/SlackBridge)

---

<div class="post-metadata">

**Author:** ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Post date:** [March 1, 2021, 4:54pm UTC](https://discourse.julialang.org/t/how-do-i-refer-to-the-directory-one-above-the-current-one-context-i-have-a-sc/56264/2 "2021-03-01T16:54:38Z")

</div>

```julia
normpath(joinpath(@ __DIR__ ), "..")

```
