resource: Create target dir if not exists
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 1 Jan 2018 13:23:51 +0000 (14:23 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 1 Jan 2018 13:23:51 +0000 (14:23 +0100)
commit16e1d99c6dd7e2acb362123ee7dea3e221f11177
tree25b36323cf3912a50171030f2111cb564941f9ec
parentbf8a61fde5696f56a77473f062bbff58d4b219ca
resource: Create target dir if not exists

This is the case where image processing is triggered from shortcodes, i.e. before the target page's folder in /public is created.

Fixes #4202
resource/image.go