function! write_mkpath#(path) abort if v:cmdbang && !isdirectory(a:path) call mkdir(a:path, 'p') endif endfunction