Added the option to settings to create directories