Partial directory search question
martien.verbruggen at invalid.see.sig
Wed Sep 30 06:21:43 CEST 2009
On Tue, 29 Sep 2009 19:09:16 -0700 (PDT),
chad <cdalten at gmail.com> wrote:
> I have a directory that contains the following
> What's the sanest way to print out all the files in the directory that
> start with the underscore? Ie, I just want to list _1, _2, _3, _4.
I don't know what you mean by "sanest", but this is one way:
for f in glob.glob("_*"):
Martien Verbruggen | You can't have everything, where would
first.last at heliotrope.com.au | you put it?
More information about the Python-list