U e5do� @s�dZddlZddlZddddddd d d d d g Zdd�Zdd �Zdd �Zdd�Zdd�Zdd�Z dd�Z dd�Z dd �Z dd �Z dd �Zdd�Zdd�ZdS)z� Path operations common to more than one OS Do not use directly. The OS specific modules import the appropriate functions from this module themselves. �N� commonprefix�exists�getatime�getctime�getmtime�getsize�isdir�isfile�samefile� sameopenfile�samestatc Cs.zt�|�Wnttfk r(YdSXdS)zDTest whether a path exists. Returns False for broken symbolic linksFT)�os�stat�OSError� ValueError)�path�r�#/usr/lib64/python3.8/genericpath.pyrs c Cs6zt�|�}Wnttfk r(YdSXt�|j�S)z%Test whether a path is a regular fileF)r rrr�S_ISREG�st_mode)r�strrrr s c Cs6zt�|�}Wnttfk r(YdSXt�|j�S)zcGs`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  �rH)�__doc__r r�__all__rr rrrrrrr r r r>rHrrrr�s. �