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 ) (More Info)