Add file & dir filter to function get_files()