Cross Platform Way to get Parent Path

Windows

$(Split-Path $pwd)

Linux/MacOS

dirname $(pwd)


To contact me, send an email anytime or leave a comment below.