qgreenland/util/misc.py
def find_in_dir_by_pattern(path, *, pattern):
    """Find all files in a directory with matching pattern.

    Expects an extension with the dot included, e.g. `pattern=".shp"`.
    """
    matches = glob.glob(os.path.join(path, '**', pattern),
                        recursive=True)

    return [os.path.abspath(os.path.join(path, f)) for f in matches]
Find all files in a directory with matching pattern.

    Expects an extension with the dot included, e.g. `pattern=".shp"`.
    
Find all files in a directory with matching pattern.
Expects an extension with the dot included, e.g.
Find all files in a directory with matching pattern . Expects an extension with the dot included e . g .
def find_in_dir_by_pattern(path, *, pattern):
    matches = glob.glob(os.path.join(path, '**', pattern),
                        recursive=True)
    return [os.path.abspath(os.path.join(path, f)) for f in matches]
def find_in_dir_by_pattern ( path , * , pattern ) : matches = glob . glob ( os . path . join ( path , '**' , pattern ) , recursive = True ) return [ os . path . abspath ( os . path . join ( path , f ) ) for f in matches ]
Find all files in a directory with matching pattern.
Find all files in a directory with matching pattern .
"""Find all files in a directory with matching pattern.

    Expects an extension with the dot included, e.g. `pattern=".shp"`.
    """
path
pattern