def contains_glob(path, glob_expr):
    path = os.path.expanduser(path)

    if not os.path.exists(path):
        return False

    try:
        with salt.utils.filebuffer.BufferedReader(path) as breader:
            for chunk in breader:
                if fnmatch.fnmatch(chunk, glob_expr):
                    return True
            return False
    except (IOError, OSError):
        return False
.. deprecated:: 0.17.0
dataset/ETHPy150Open saltstack/salt/salt/modules/file.py/contains_glob