How to make Emacs create intermediate dirs - when saving a file?

Viewed 3276

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.

3 Answers
Related