Module glob
[hide private]
[frames] | no frames]

Module glob

Filename globbing utility.

Functions [hide private]
 
glob(pathname)
Return a list of paths matching a pathname pattern.
 
iglob(pathname)
Return a list of paths matching a pathname pattern.
 
glob1(dirname, pattern)
 
glob0(dirname, basename)
 
has_magic(s)
Variables [hide private]
  magic_check = re.compile(r'[\*\?\[]')

Imports: os, fnmatch, re


Function Details [hide private]

glob(pathname)

 

Return a list of paths matching a pathname pattern.

The pattern may contain simple shell-style wildcards a la fnmatch.

iglob(pathname)

 

Return a list of paths matching a pathname pattern.

The pattern may contain simple shell-style wildcards a la fnmatch.