(self, pattern)
Iterate over this subtree and yield all existing files (of any
        kind, including directories) matching the given relative pattern.
Iterate over this subtree and yield all existing files (of any
        kind, including directories) matching the given relative pattern.
Iterate over this subtree and yield all existing files ( of any kind including directories ) matching the given relative pattern .
def glob(self, pattern):
        """Iterate over this subtree and yield all existing files (of any
        kind, including directories) matching the given relative pattern.
        """
        sys.audit("pathlib.Path.glob", self, pattern)
        if not pattern:
            raise ValueError("Unacceptable pattern: {!r}".format(pattern))
        drv, root, pattern_parts = self._flavour.parse_parts((pattern,))
        if drv or root:
            raise NotImplementedError("Non-relative patterns are unsupported")
        selector = _make_selector(tuple(pattern_parts), self._flavour)
        for p in selector.select_from(self):
            yield p
def glob ( self , pattern ) : sys . audit ( "pathlib.Path.glob" , self , pattern ) if not pattern : raise ValueError ( "Unacceptable pattern: {!r}" . format ( pattern ) ) drv , root , pattern_parts = self . _flavour . parse_parts ( ( pattern , ) ) if drv or root : raise NotImplementedError ( "Non-relative patterns are unsupported" ) selector = _make_selector ( tuple ( pattern_parts ) , self . _flavour ) for p in selector . select_from ( self ) : yield p