AlkantarClanX12

Your IP : 18.119.167.189


Current Path : /opt/alt/python312/lib64/python3.12/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/__pycache__/genericpath.cpython-312.pyc

�

�Q�f���t�dZddlZddlZgd�Zd�Zd�Zd�Zd�Zd�Zd	�Z	d
�Z
d�Zd�Zd
�Z
d�Zd�Zd�Zd�Zy)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�islink�samefile�sameopenfile�samestatc�Z�	tj|�y#ttf$rYywxYw)zDTest whether a path exists.  Returns False for broken symbolic linksFT)�os�stat�OSError�
ValueError)�paths �2/opt/alt/python312/lib64/python3.12/genericpath.pyrrs0���
����
���
�Z� ����s��*�*c��	tj|�}tj|j
�S#ttf$rYywxYw)z%Test whether a path is a regular fileF)rrrr�S_ISREG�st_mode�r�sts  rr
r
sB���
�W�W�T�]���<�<��
�
�#�#��
�Z� ������6�A�Ac��	tj|�}tj|j
�S#ttf$rYywxYw)z<Return true if the pathname refers to an existing directory.F)rrrr�S_ISDIRr)�srs  rr	r	'sB���
�W�W�Q�Z���<�<��
�
�#�#��
�Z� ����rc��	tj|�}tj|j�S#tttf$rYywxYw)z&Test whether a path is a symbolic linkF)r�lstatrr�AttributeErrorr�S_ISLNKrrs  rrr3sD���
�X�X�d�^���<�<��
�
�#�#��
�Z��0����s�6�A
�A
c�@�tj|�jS)z1Return the size of a file, reported by os.stat().)rr�st_size��filenames rrr<s��
�7�7�8��$�$�$�c�@�tj|�jS)zCReturn the last modification time of a file, reported by os.stat().)rr�st_mtimer%s rrrA���
�7�7�8��%�%�%r'c�@�tj|�jS)z=Return the last access time of a file, reported by os.stat().)rr�st_atimer%s rrrFr*r'c�@�tj|�jS)zAReturn the metadata change time of a file, reported by os.stat().)rr�st_ctimer%s rrrKr*r'c���|syt|dttf�s#tttj
|��}t
|�}t|�}t|�D]\}}|||k7s�|d|cS|S)zGGiven a list of pathnames, returns the longest common leading component�rN)	�
isinstance�list�tuple�mapr�fspath�min�max�	enumerate)�m�s1�s2�i�cs     rrrQsq���R�
�a��d�T�5�M�*��#�b�i�i��#�$��	�Q��B�	�Q��B��"�
���1���1��:��b�q�6�M���Ir'c�j�|j|jk(xr|j|jk(S)z5Test whether two stat buffers reference the same file)�st_ino�st_dev)r:r;s  rrrcs,���I�I����"�
#��I�I����"�$r'c�n�tj|�}tj|�}t||�S)z�Test whether two pathnames reference the same actual file or directory

    This is determined by the device number and i-node number and
    raises an exception if an os.stat() call on either pathname fails.
    )rrr)�f1�f2r:r;s    rrrjs+��
�����B�	�����B��B���r'c�n�tj|�}tj|�}t||�S)z:Test whether two open file objects reference the same file)r�fstatr)�fp1�fp2r:r;s    rr
r
ws)��	���#��B�	���#��B��B���r'c���|j|�}|r|j|�}t||�}|j|�}||kDr*|dz}||kr |||dz|k7r
|d|||dfS|dz
}||kr� ||ddfS)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)�rfindr7)�p�sep�altsep�extsep�sepIndex�altsepIndex�dotIndex�
filenameIndexs        r�	_splitextrS�s����w�w�s�|�H�
��g�g�f�o���x��-���w�w�v��H��(�� �1��
��h�&���}�Q��/�6�9���(�|�Q�x�y�\�1�1��Q��M��h�&�

�a���e�8�Or'c���dx}}|D]L}t|t�rd}�t|t�rd}�)t|�d|jj
���d�|r|rtd�d�yy)NFTz;() argument must be str, bytes, or os.PathLike object, not z.Can't mix strings and bytes in path components)r1�str�bytes�	TypeError�	__class__�__name__)�funcname�args�hasstr�hasbytesrs     r�_check_arg_typesr^�s�����F�X�
���a����F�
��5�
!��H��x�j�)7�78�{�{�7K�7K�6N�P�Q�VZ�
[�
��(��H�I�t�S��vr')�__doc__rr�__all__rr
r	rrrrrrrrr
rSr^�r'r�<module>rbs`���

�����$�$�$�%�
&�
&�
&��$$����.Tr'