ls files --> list packer

kpp9c kp8 at mac.com
Fri Feb 24 03:18:12 EST 2006


gosh i could even use other string methods like startswith to take all
the files in a given directory which i have organized with a prefix and
have them stuffed in different lists  ... i think ...

snd_filelist = [f for f in os.listdir('/Users/foo/snd') if
f.endswith('.aif') & f.startswith('r')]

\m/ (>.<) \m/

yeah!

runnin' to the interpreta now...




More information about the Python-list mailing list