renaming files

Joerg Woelke dvass at felis.uni-freiburg.de
Tue Jan 7 05:57:24 CET 2003


Hi!

Hilbert wrote:
> 
> Hello,

[ snip ]

> I can't find no easy way. I don't want to use a system call to 'ls', so got
> a list
> of files with os.listdir(), but how can I get a selective list?
> I can match "test-" with string.find, but I'm really looking for test-????.*
> (csh wildcards).

glob.glob()
 
> Any suggestions?
> 
> Thanks!

HTH, J"o!

-- 
sigfault




More information about the Python-list mailing list