Making the filtering of hidden files and folders more general.