Python List Files in Directory

August 22, 2018
import os
import glob

for _file in glob.glob('/data/*.txt'):
    filename = os.path.basename(_file)

References:

This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.