import os liste = [] for root, dir, files in os.walk("/home/raid1/jzelmer/programmierkrams/input"): liste = files print (liste)