Calmcode - tqdm: files and descriptions

Files and Descriptions

1 2 3 4 5

Here's the code used in this example.

import time
import glob
import tqdm

pbar = tqdm.tqdm(glob.glob("logs/*.txt"))
for file in pbar:
    pbar.set_description(file)
    time.sleep(0.5)