from pathlib import Path


def getFileList(dir, extension):
    """ Get all files in this directory with given extension (recursively).
    Input:
    String dir, directory
    String extension, valid extensions with leading point -> ".laz"
    Return:
    List, with all path of files with given extension
    """
    # get string from WindowsPath and return list
    return [p.__str__() for p in sorted(list(Path(dir).glob('**/*' + extension)))]