I have a folder at the moment containing various files that I need to run some code on and convert into a csv. I'm trying to see if there is a way to check the name of the file in the folder and then execute the respective code. I have tried:
for xlsb_file in pathlib.Path('Directory Path').glob('Filename*.xlsb'):
RUN CODE
convert dataset into a csv
For some reason this code seems to execute without any error but no csv file is outputted. Ideally what I would like is when I run the code, for the code to detect the filename, run the respective code and then spit out a csv.
Is there anyway to do this? All help is appreciated!