On May 3, 9:58 am, pradeep nair <[EMAIL PROTECTED]> wrote: > HI, > > How do i find files with .so extension using python .
Hi pradeep This piece of code should help you import os,re def findfile(filepattern, base = '.'): regex = re.compile(filepattern) matches = [] for root,dirs,files in os.walk(base): for f in files: if regex.match(f): matches.append(root + '/' + f) return matches HAPPY CODING -- http://mail.python.org/mailman/listinfo/python-list