I hope ~:mkdirp~ header argument can also work for other related header arguments like ~:dir~, ~:file~ etc not just ~:tangle~. Like following example. #+begin_src sh :mkdirp yes :dir "data/code/mkdirp/dir" :file "test" :results file link echo "hello" #+end_src So I added a simple patch to make it work. (I posted message before, but I forgot to update the subject which might be ignored, so I post a new one again.)