I have the full path name for this folder, for example,
c:\foo\bar
Now I would like to refer to the file inside c: \ foo named baz.txt,
c:\foo\bar\..\baz.txt
I am currently using the path .. operator to go one level and get the file I need.
Is there a function that can perform path manipulation, for example. UpOneLevel (str) → str? I know that I can write one by dividing the line and deleting the last token, but I would prefer it to be a built-in / library function, so I don't get into the problem later if there are, for example, flashed backslashes.
source share