Iterate or go through all files in a directory python

TEXT

import os
from tqdm import tqdm
            
for filename in tqdm(os.listdir(directory)):
   if filename.endswith(".csv"):
       fp = os.path.join(directory, filename)

SNAPPED!

Comments

Popular posts from this blog

Append to a json file python

Setup Mailhog mail server on Ubuntu