code: def is_in_file_tree(fpath, folder):
      
      file_folder, _ = os.path.split(fpath)
      other_folder = os.path.join(folder, "")
      return other_folder.startswith(file_folder)
docs: Determine whether a file is in a folder.
  
      :param str fpath: filepath to investigate
      :param folder: path to folder to query
      :return bool: whether the path indicated is in the folder indicated