@philicious I don't disagree that it might be nice, I just think that doing a recursive directory create is too much for this PR to solve today. I think we should break out the concerns ... any functionality like this belongs in stdlib not postgresql anyway. Move the function there and debate it until its merged in, then use it here once we have a suitable solution. The problem is just bigger than postgresql today and needs more holistically conscious ppl to discuss and debate a good general purpose solution.