import glob list_of_files = glob.glob("*.csv")
from pathlib import Path dir = Path(".").glob('*.csv')