Re: Better way to searching.

2007-12-14 Thread farsheed
thanks, I'll try it. -- http://mail.python.org/mailman/listinfo/python-list

Re: Better way to searching.

2007-12-14 Thread David Tweet
Hello, You might try using os.path.walk, I think it ends up being much more flexible than glob for this. #!/usr/bin/python2.4 import os def Finder(topdir, file_extension=None, levels=None): """Return all filenames in topdir. Args: topdir: Top level directory to search file_extensi

Better way to searching.

2007-12-13 Thread farsheed
my code is here: _ def Globing(self, dir, extension, nop, inputDepth): 'It creates a basic glob function that needed in other classes' self.exop = '*.' self.opr = '*/'