Adding listAllFiles function that allows to search a directory with the option to make the search recursive and that the file path names need to contains certain substrings