ls files --> list packer
kpp9c
kp8 at mac.com
Fri Feb 24 03:08:47 EST 2006
cool i just tried:
>>> import os
>>>snd_filelist = [f for f in os.listdir('/Users/foo/snd') if f.endswith('.aif')]
and it worked! and will take a huge bite out of my big script ... which
i make by doing an ls
in the terminal and editing (boo hoo)
one one lc and one import!
cool..
that other sillyness i mentioned is not strickly required ... just
dreaming but i know involves some kind of os walk type thing prolly ...
meanwhile this is so exciting!
Thank you!!!!
More information about the Python-list
mailing list