Relative Content

Tag Archive for pythonlistfiltersubstring

how to extract files from a list using substring filter [duplicate]

This question already has answers here: Does Python have a string ‘contains’ substring method? (10 answers) Closed 3 days ago. I have a list of files from os.listdir like: TXSHP_20240712052921.csv TXSHP_20240715045301.csv TXSHP_FC_20210323084010.csv TXSHP_FC_20231116060918.csv how do I extract only the ones where ‘FC’ is not in the filename Ive tried def get_archive_filelist_chip(archiveFldr): nonedi_files_chip = [] folder […]