code: def ls_dir(path):
      """
      List the files in directories
      """
      if not path or not os.path.exists:
          return []
  
      if os.path.isfile(path):
          return [path]
  
      ls = []
  
      for root, _, file_names in os.walk(path):
          for file_name in file_names:
              ls.append(os.path.join(root, file_name))
  
      return ls
  
file_path: aim/aim/web/utils.py
imports: from importlib import import_module
  import os
  import subprocess
  from aim.web.configs import AIM_UI_MOUNTED_REPO_PATH
  from aim.sdk.configs import get_aim_repo_name
  from aim.sdk.utils import clean_repo_path
label_desc: Use image node_id 3 for calling a global function with example usage: ls_dir(path) and returns: ls, list, list