def METHOD_NAME(self, path, loader):
    """
    Return the source files from which to load data,
    if the path is a directory - lookup vars file inside
    """
    global_vars_paths = self.get_option("paths")
    extensions = self.get_option("_valid_extensions")
    found_files = []
    for g_path in global_vars_paths:
        b_opath = os.path.realpath(to_bytes(os.path.join(path, g_path)))
        opath = to_text(b_opath)
        try:
            if not os.path.exists(b_opath):
                # file does not exist, skip it
                self._display.vvv(f"Path: {opath} does not exist - skipping")
                continue
            self._display.vvv(f"Adding Path: {opath} to global variables")
            if os.path.isdir(b_opath):
                self._display.debug(f"\tProcessing dir {opath}")
                res = loader._get_dir_vars_files(opath, extensions)
                self._display.debug(f"Found variable files {str(res)}")
                found_files.extend(res)
            else:
                found_files.append(b_opath)
        except Exception as e:
            raise AnsibleParserError(to_native(e)) from e
    return found_files