Cross Platform Way to get Parent Path

Windows

$(Split-Path $pwd)

Linux/MacOS

dirname $(pwd)

Thanks! You can always email me or use contact form for more questions/comments etc.


bash

6 Words

2021-05-28