Is there a way to create folder tree in emacs - similar to

mkdir -p

in bash?

Basically - I want emacs to create all the intemediate dirs - if they were not existing - when I save a file.

Edit
Report