bash cd or make dir if not exists

C++
mkdir -p foo

Source

Also in C++: