a �DOgo�@s�ddlZddlZgd�Zdd�Zdd�Zdd�Zd d �Zd d �Zd d�Zdd�Z dd�Z dd�Z dd�Z dd�Z dd�Zdd�ZdS)�N) � commonprefix�exists�getatime�getctime�getmtime�getsize�isdir�isfile�samefile� sameopenfile�samestatc Cs,zt�|�Wnttfy&YdS0dS)NFT)�os�stat�OSError� ValueError)�path�r�#/usr/lib64/python3.9/genericpath.pyrs rc Cs4zt�|�}Wnttfy&YdS0t�|j�S�NF)r rrr�S_ISREG�st_mode)r�strrrr s r c Cs4zt�|�}Wnttfy&YdS0t�|j�Sr)r rrr�S_ISDIRr)�srrrrr's rcCs t�|�jS�N)r r�st_size��filenamerrrr0srcCs t�|�jSr)r r�st_mtimerrrrr5srcCs t�|�jSr)r r�st_atimerrrrr:srcCs t�|�jSr)r r�st_ctimerrrrr?srcCsl|sdSt|dttf�s*tttj|��}t|�}t|�}t|�D]$\}}|||krB|d|�SqB|S)N�r) � isinstance�list�tuple�mapr �fspath�min�max� enumerate)�m�s1�s2�i�crrrrEs rcCs|j|jko|j|jkSr)�st_ino�st_dev)r+r,rrrr Ws  �r cCst�|�}t�|�}t||�Sr)r rr )�f1�f2r+r,rrrr ^s  r cCst�|�}t�|�}t||�Sr)r �fstatr )�fp1�fp2r+r,rrrr ks  r cCs�|�|�}|r"|�|�}t||�}|�|�}||krz|d}||krz|||d�|krp|d|�||d�fS|d7}q<||dd�fS)N�r)�rfindr()�p�sep�altsep�extsep�sepIndex� altsepIndex�dotIndex� filenameIndexrrr� _splitextys     r@cGs`d}}|D]<}t|t�r d}q t|t�r0d}q t|�d|jj���d�q |r\|r\td�d�dS)NFTz;() argument must be str, bytes, or os.PathLike object, not z.Can't mix strings and bytes in path components)r"�str�bytes� TypeError� __class__�__name__)�funcname�args�hasstr�hasbytesrrrr�_check_arg_types�s  ��rJ)r r�__all__rr rrrrrrr r r r@rJrrrr�s