Move directory creation out of folder path method.