I'm using python to read CSV files inside a folder and after to perform calculations.
Some times inside the folder there are ".DS_Store files". When the algorithm reads one of those files everything blows up.
Those files are easy to delete manually.
How can I achieve a built-in function inside my code? (here is the part of the code that reads the files)
for i in range(10):
M1 = genfromtxt(listOfFiles[i], delimiter=',', encoding='unicode_escape')