Ë
    ÝÍ:jõ  ã                  óH   — d dl mZ d dlZd dlZd dlZdd„Zd„ f	 	 	 	 	 dd„Zy)é    )ÚannotationsNc                ó’   — t        | t        «      st        | «      } | j                  «       j                  |j                  «       «      S )zA
    Returns whether `path` ends in `suffix`, ignoring case.
    )Ú
isinstanceÚstrÚcasefoldÚendswith)ÚpathÚsuffixs     úq/home/mcse/projects/srt_converter/srt-converter-venv/lib/python3.12/site-packages/onnxruntime/tools/file_utils.pyÚpath_match_suffix_ignore_caser   
   s5   € ô �dœCÔ Ü�4‹yˆØ�=‰=‹?×#Ñ# F§O¡OÓ$5Ó6Ð6ó    c                 ó   — y)NT© )Ú_s    r   ú<lambda>r      s   � r   c                ó4  ‡‡— t        | t        j                  «      st        j                  | «      } g Šdˆˆfd„}| j                  «       rEt	        j
                  | «      D ]+  \  }}}|D ]   }t        j                  ||«      } ||«       Œ" Œ- ‰S  || «       ‰S )a`  
    Gets the files in `file_or_dir_path` satisfying `predicate`.
    If `file_or_dir_path` is a file, the single file is considered. Otherwise, all files in the directory are
    considered.
    :param file_or_dir_path: Path to a file or directory.
    :param predicate: Predicate to determine if a file is included.
    :return: A list of files.
    c                ó:   •—  ‰| «      r‰j                  | «       y y )N)Úappend)Ú	file_pathÚ	predicateÚselected_filess    €€r   Úprocess_filez,files_from_file_or_dir.<locals>.process_file#   s   ø€ Ù�YÔØ×!Ñ! )Õ,ð  r   )r   zpathlib.Path)r   ÚpathlibÚPathÚis_dirÚosÚwalk)	Úfile_or_dir_pathr   r   Úrootr   ÚfilesÚfiler   r   s	    `      @r   Úfiles_from_file_or_dirr"      s›   ù€ ô Ð&¬¯©Ô5Ü"Ÿ<™<Ð(8Ó9Ðà€Nö-ð ×ÑÔ Ü Ÿg™gÐ&6Ó7ò 	(‰NˆD�!�UØò (�Ü#ŸL™L¨¨tÓ4�	Ù˜YÕ'ñ(ð	(ð Ðñ 	Ð%Ô&àÐr   )r	   úpathlib.Path | strr
   r   ÚreturnÚbool)r   r#   r   z%typing.Callable[[pathlib.Path], bool]r$   zlist[pathlib.Path])Ú
__future__r   r   r   Útypingr   r"   r   r   r   ú<module>r(      s<   ðõ #ã 	Û Û ó7ñ ^lðØ(ðØ5Zðàôr   