Add support for both folders and files as settings.