code: def _dirfiles(dir_path: str, glob_pattern: str) -> str:
      p = Path(dir_path)
      filenames = sorted(
          [
              f.name
              for f in p.glob(glob_pattern)
              if not f.name.startswith(".")
          ]
      )
      return "+".join(filenames)
  
file_path: streamlit/lib/streamlit/watcher/util.py
imports: import hashlib
  import os
  import time
  from pathlib import Path
  from typing import Optional
  from streamlit.util import HASHLIB_KWARGS
label_desc: Use image node_id 4 for calling a global function with example usage: _dirfiles(dir_path, glob_pattern) and returns: str