import os
folder_path = '/Users/.../subforum info'
forum_files = os.listdir(forum_dictpath) forum_file_paths = [] for file in forum_files: file_path = os.path.join(forum_dictpath,file) if file_path.split('.')[1] == 'csv': forum_file_paths.append(file_path)
|