a �DOgo�@s�dZddlZddlZgd�Zdd�Zdd�Zdd �Zd d �Zd d �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�|�Wnttfy&YdS0dS)zDTest whether a path exists. Returns False for broken symbolic linksFT)�os�stat�OSError� ValueError)�path�r�#/usr/lib64/python3.9/genericpath.pyrs rc Cs4zt�|�}Wnttfy&YdS0t�|j�S)z%Test whether a path is a regular fileF)r rrr�S_ISREG�st_mode)r�strrrr s r c Cs4zt�|�}Wnttfy&YdS0t�|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