checkers/__init__.py
def glob_files(self, **kwargs):
        """Need to do a glob function (can't use glob to support ST's python)"""
        files = []
        base_path = os.path.join(self.path, kwargs.get('base_path', ''))
        def recursive(path, **kwargs):

            for item in os.listdir(path):
                if os.path.isdir(os.path.join(path, item)):
                    recursive(os.path.join(path, item), **kwargs)
                elif 'extension' in kwargs:
                    if os.path.splitext(item)[1] == kwargs['extension']:
                        files.append(self.rel_path(os.path.join(path, item)))
                elif 'file_name' in kwargs:
                    if kwargs['file_name'] == item:
                        files.append(self.rel_path(os.path.join(path, item)))
                elif 'rel_path' in kwargs:
                    if kwargs['rel_path'] == self.rel_path(os.path.join(path, item)):
                        files.append(self.rel_path(os.path.join(path, item)))
                else:
                    files.append(self.rel_path(os.path.join(path, item)))
            return files

        return recursive(base_path, **kwargs)
Need to do a glob function (can't use glob to support ST's python)
Need to do a glob function (can't use glob to support ST's python)
Need to do a glob function ( can ' t use glob to support ST ' s python )
def glob_files(self, **kwargs):
        files = []
        base_path = os.path.join(self.path, kwargs.get('base_path', ''))
        def recursive(path, **kwargs):
            for item in os.listdir(path):
                if os.path.isdir(os.path.join(path, item)):
                    recursive(os.path.join(path, item), **kwargs)
                elif 'extension' in kwargs:
                    if os.path.splitext(item)[1] == kwargs['extension']:
                        files.append(self.rel_path(os.path.join(path, item)))
                elif 'file_name' in kwargs:
                    if kwargs['file_name'] == item:
                        files.append(self.rel_path(os.path.join(path, item)))
                elif 'rel_path' in kwargs:
                    if kwargs['rel_path'] == self.rel_path(os.path.join(path, item)):
                        files.append(self.rel_path(os.path.join(path, item)))
                else:
                    files.append(self.rel_path(os.path.join(path, item)))
            return files
        return recursive(base_path, **kwargs)
def glob_files ( self , ** kwargs ) : files = [ ] base_path = os . path . join ( self . path , kwargs . get ( 'base_path' , '' ) ) def recursive ( path , ** kwargs ) : for item in os . listdir ( path ) : if os . path . isdir ( os . path . join ( path , item ) ) : recursive ( os . path . join ( path , item ) , ** kwargs ) elif 'extension' in kwargs : if os . path . splitext ( item ) [ 1 ] == kwargs [ 'extension' ] : files . append ( self . rel_path ( os . path . join ( path , item ) ) ) elif 'file_name' in kwargs : if kwargs [ 'file_name' ] == item : files . append ( self . rel_path ( os . path . join ( path , item ) ) ) elif 'rel_path' in kwargs : if kwargs [ 'rel_path' ] == self . rel_path ( os . path . join ( path , item ) ) : files . append ( self . rel_path ( os . path . join ( path , item ) ) ) else : files . append ( self . rel_path ( os . path . join ( path , item ) ) ) return files return recursive ( base_path , ** kwargs )
Need to do a glob function (can't use glob to support ST's python)
Need to do a glob function ( can ' t use glob to support ST ' s python )
"""Need to do a glob function (can't use glob to support ST's python)"""
self