(self, dir, pattern)
return bool(found)
Include all files anywhere in 'dir/' that match the pattern.
Include all files anywhere in 'dir/' that match the pattern.
Include all files anywhere in dir / that match the pattern .
def recursive_include(self, dir, pattern):
        """
        Include all files anywhere in 'dir/' that match the pattern.
        """
        full_pattern = os.path.join(dir, '**', pattern)
        found = [f for f in glob(full_pattern, recursive=True)
                 if not os.path.isdir(f)]
        self.extend(found)
        return bool(found)
def recursive_include ( self , dir , pattern ) : full_pattern = os . path . join ( dir , '**' , pattern ) found = [ f for f in glob ( full_pattern , recursive = True ) if not os . path . isdir ( f ) ] self . extend ( found ) return bool ( found )