
    h                    N    S SK Jr  S SKrS SKrS SKrSS jrS 4     SS jjrg)    )annotationsNc                    [        U [        5      (       d  [        U 5      n U R                  5       R                  UR                  5       5      $ )z9
Returns whether `path` ends in `suffix`, ignoring case.
)
isinstancestrcasefoldendswith)pathsuffixs     V/var/www/fran/franai/venv/lib/python3.13/site-packages/onnxruntime/tools/file_utils.pypath_match_suffix_ignore_caser   
   s8     dC  4y==?##FOO$566    c                    g)NT )_s    r   <lambda>r      s    gkr   c                V  ^^ [        U [        R                  5      (       d  [        R                  " U 5      n / mSUU4S jjnU R                  5       (       aI  [        R
                  " U 5       H-  u  p4nU H!  n[        R                  " X65      nU" U5        M#     M/     T$ U" U 5        T$ )aD  
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                D   > T" U 5      (       a  TR                  U 5        g g )N)append)	file_path	predicateselected_filess    r   process_file,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5"<<(89N- -    gg&67NDU#LL4	Y'  8  	%&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   