I have a csv file in which the name will always change when exported from an application. I want to rename the csv file using python. Here's what I have so far, but it's definitely wrong.
directory = "/files/"
for file in directory:
if file.endswith('.csv'):
os.rename('*.csv', 'tracking.csv')