i want to make a list of filenames or filepathes with same extension that i set. For example, I have a directory C:\data with many files in it. I set extension parameter (for example .txt). What i need is to create a list of filepathes to those files, like this:
['C:\\data\\example1.txt','C:\\data\\example2.txt','C:\\data\\example3.txt']