Owncloud 9.1.4 - automatically create home directory and files on user creation

As part of some services that we're building on top of owncloud, I need to be able to have account creation also immediately generate the new account's home directory and file structure. I've tried including the OC libs in my script and then using the internal functions but I'm apparently doing it wrong. I gather this was the default a few versions back and don't see why it wasn't left as an option in 9.x, instead of making people hand-code it.

So, is there a straightforward way to create the user's directory structure when their account is created?