# SOLVED: relative paths where filename arguments are expected

**URL:** <https://discourse.julialang.org/t/solved-relative-paths-where-filename-arguments-are-expected/10426>\
**Category:** General Usage\
**Created:** [April 19, 2018, 5:29am UTC](https://discourse.julialang.org/t/solved-relative-paths-where-filename-arguments-are-expected/10426 "2018-04-19T05:29:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lewis](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lewis/32/5217_2.png) [@lewis](https://discourse.julialang.org/u/lewis)\
**Post date:** [April 19, 2018, 5:29am UTC](https://discourse.julialang.org/t/solved-relative-paths-where-filename-arguments-are-expected/10426/1 "2018-04-19T05:29:42Z")

</div>

Shouldn’t the following work as ways to reference files and directories relative to the current working directory:

cd(“…/txt\_output”)  
isdir(“…/txt\_output”)  
open(“…/txt\_output/mytext.txt”, “r”)

None of them do. Is this related to the tilde issue?

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [April 19, 2018, 5:37am UTC](https://discourse.julialang.org/t/solved-relative-paths-where-filename-arguments-are-expected/10426/2 "2018-04-19T05:37:01Z")

</div>

I think you just have one too many dots.

---

<div class="post-metadata">

**Author:** ![lewis](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lewis/32/5217_2.png) [@lewis](https://discourse.julialang.org/u/lewis)\
**Post date:** [April 19, 2018, 5:41am UTC](https://discourse.julialang.org/t/solved-relative-paths-where-filename-arguments-are-expected/10426/3 "2018-04-19T05:41:36Z")

</div>

Yes–as I typed the example. I used 2 dots in code.

There is no problem: I was not navigating the file hierarchy correctly! Doh!

tx.
