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 = '*/'
                self.counter = ''
                self.files = []
                self.path = ''
                for i in range (inputDepth):
                        self.path = dir + self.opr * i + self.exop * nop + 
extension
#like this:        */*/*.*.mpg
                        self.counter = glob.glob(self.path)
                        self.files += self.counter
                return self.files
____________________________________________________________________________

Is there any better and faster way to do this?
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to