� !A?h~���dZddlZddlZgd�Zd�Zd�Zd�Zd�Zd�Zd �Z d �Z d �Z d �Z d �Z d�Zd�Zd�ZejGd�d����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�samestat� ALLOW_MISSINGc�b� tj|��n#ttf$rYdSwxYwdS)zDTest whether a path exists. Returns False for broken symbolic linksFT)�os�stat�OSError� ValueError)�paths �8/opt/alt/python-internal/lib64/python3.11/genericpath.pyrrsB��� ��� � � � �� �Z� �����u�u����� �4� ��,�,c�� tj|��}n#ttf$rYdSwxYwtj|j��S)z%Test whether a path is a regular fileF)rrrr�S_ISREG�st_mode)r�sts rr r sO��� �W�T�]�]���� �Z� �����u�u����� �<�� � #� #�#rc�� tj|��}n#ttf$rYdSwxYwtj|j��S)z�|�|��}|r%|�|��}t||��}|�|��}||kr;|dz}||kr0|||dz�|kr|d|�||d�fS|dz }||k�0||dd�fS)z�Split the extension from a pathname. Extension is everything from the last dot to the end, ignoring leading dots. Returns "(root, ext)"; ext may be empty.�Nr)�rfindr2)�p�sep�altsep�extsep�sepIndex� altsepIndex�dotIndex� filenameIndexs r� _splitextrNys����w�w�s�|�|�H� �.��g�g�f�o�o� ��x��-�-���w�w�v���H��(��� �1� � ��h�&�&���}�Q��.�/�6�9�9���(��|�Q�x�y�y�\�1�1� �Q� �M��h�&�&� �a����e�8�Or"c���dx}}|D]P}t|t��rd}�t|t��rd}�2t|�d|jj����d�|r|rtd��d�dSdS)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�hasbytesrs r�_check_arg_typesrY�s�����F�X� �[�[�� �a�� � � [��F�F� ��5� !� !� [��H�H��x�P�P�78�{�7K�P�P�Q�Q�VZ� [� �T�(�T��H�I�I�t�S�T�T�T�Tr"c��eZdZdZd�Zd�ZdS)rz$Special value for use in realpath().c��dS)Nzos.path.ALLOW_MISSING���selfs r�__repr__zALLOW_MISSING.__repr__�s��&�&r"c��|jjS)N)rSrTr]s r� __reduce__zALLOW_MISSING.__reduce__�s ���~�&�&r"N)rT� __module__� __qualname__�__doc__r_rar\r"rrr�s8������.�.�'�'�'�'�'�'�'�'r"r)rdrr�__all__rr r rrrrrr r r rNrY�object�__new__rr\r"r�rhs:����  � � � � � � � � (� (� (�����$�$�$�$�$�$�%�%�%� &�&�&� &�&�&� &�&�&� ���$$�$�$����������. T� T� T���'�'�'�'�'�'�'���'�'�'r"