I have written a small python code to read specific files containing .txt from the specific path. I would like to do the same thing to search for files with multiple extensions more or less with the same code with little modifications. Ofcourse, I am not looking for / which will search all the extensions. Any help would be appreciated.
varlogpath = "C:/Users/vveldand/Office/Fetcher/Projects/LOG-PARSER/var/log/*.txt"
outputfile = open(wrfilename, "a")
files=glob.glob(varlogpath)