OpenQuizz
Une application de gestion des contenus pédagogiques
setuptools.glob Namespace Reference

Functions

def glob (pathname, recursive=False)
 
def iglob (pathname, recursive=False)
 
def glob1 (dirname, pattern)
 
def glob0 (dirname, basename)
 
def glob2 (dirname, pattern)
 
def has_magic (s)
 
def escape (pathname)
 

Variables

 magic_check
 
 magic_check_bytes
 

Detailed Description

Filename globbing utility. Mostly a copy of `glob` from Python 3.5.

Changes include:
 * `yield from` and PEP3102 `*` removed.
 * Hidden files are not ignored.

Function Documentation

◆ escape()

def setuptools.glob.escape (   pathname)
Escape all special characters.

◆ glob()

def setuptools.glob.glob (   pathname,
  recursive = False 
)
Return a list of paths matching a pathname pattern.

The pattern may contain simple shell-style wildcards a la
fnmatch. However, unlike fnmatch, filenames starting with a
dot are special cases that are not matched by '*' and '?'
patterns.

If recursive is true, the pattern '**' will match any files and
zero or more directories and subdirectories.

◆ glob0()

def setuptools.glob.glob0 (   dirname,
  basename 
)

◆ glob1()

def setuptools.glob.glob1 (   dirname,
  pattern 
)

◆ glob2()

def setuptools.glob.glob2 (   dirname,
  pattern 
)

◆ has_magic()

def setuptools.glob.has_magic (   s)

◆ iglob()

def setuptools.glob.iglob (   pathname,
  recursive = False 
)
Return an iterator which yields the paths matching a pathname pattern.

The pattern may contain simple shell-style wildcards a la
fnmatch. However, unlike fnmatch, filenames starting with a
dot are special cases that are not matched by '*' and '?'
patterns.

If recursive is true, the pattern '**' will match any files and
zero or more directories and subdirectories.

Variable Documentation

◆ magic_check

magic_check

◆ magic_check_bytes

magic_check_bytes