Ich habe versucht alle Dateien aus einem vom user gegebenen Verzeichnis wie folgt auszugeben:
Code: Alles auswählen
import os, glob
path2strings = 'strings/'
for infile in glob.glob(os.path.join(path2strings, '*.txt')):
fileName = infile.split("/")
fileName = fileName.pop()
print fileName
Viele Grüße