Can Scrivener always create a directory when exporting the markdown?

I was looking into automating my workflow of exporting posts from scrivener into my blog. Unfortunately, some of my posts have in-line images which makes it not trivial to figure if I’m dealing with a folder having inline images or not.

Is there any option for scriv to always export the markdown source into a folder even if it’s the single file?