����JFIF���������
1#@!#!123s
D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
python311
/
lib64
/
python3.11
/
__pycache__
/
Filename :
posixpath.cpython-311.pyc
back
Copy
� ����!A?h/C�����������������������F����d�Z�dZdZdZdZdZdZdZdZddl Z ddl Z ddlZddlZdd lT�g�d �Z d��Zd��Zd ��Zd��Zd��Zd��Zej��������j���������e_���������d��Zd��Zd��Zd��Zd��Zd��Zd��Zdadad��Z �ddlm Z �d��Z!n#�e"$�r�d��Z!Y�nw�xY�wd��Z#dd�d�Z$d ��Z%e j&��������d!k����Z'd$d"�Z(d#��Z)dS�)%a���Common operations on Posix pathnames. Instead of importing this module directly, import os and refer to this module as os.path. The "os.path" name is an alias for this module on Posix systems; on other systems (e.g. Windows), os.path provides the same operations in a manner specific to that platform, and is an alias to another module (e.g. ntpath). Some of this can actually be useful on non-Posix systems too, e.g. for manipulation of the pathname component of URLs. �.�..�/�:z /bin:/usr/binNz /dev/null�����)�*)'�normcase�isabs�join� splitdrive�split�splitext�basename�dirname�commonprefix�getsize�getmtime�getatime�getctime�islink�exists�lexists�isdir�isfile�ismount� expanduser� expandvars�normpath�abspath�samefile�sameopenfile�samestat�curdir�pardir�sep�pathsep�defpath�altsep�extsep�devnull�realpath�supports_unicode_filenames�relpath� commonpath� ALLOW_MISSINGc������������������4�����t����������|�t����������������������rdS�dS�)N����/r���)� isinstance�bytes��paths��� �0/opt/alt/python311/lib64/python3.11/posixpath.py�_get_sepr6���)���s�������$�������t��s�����c������������������*�����t����������j��������|�������������S�)z6Normalize case of pathname. Has no effect under Posix��os�fspath)�ss��� r5���r���r���4���s������ �9�Q�<�<�r7���c������������������r�����t����������j��������|�������������}�t����������|�������������}|����������������������|������������S�)zTest whether a path is absolute)r:���r;���r6���� startswith)r<���r$���s��� r5���r ���r ���<���s,������ � �!���A� �1�+�+�C��<�<����r7���c����������������������t����������j��������|�������������}�t����������|�������������}|�} �|s |dd����������|z����t����������t�����������j��������|������������D�]?}|���������������������|������������r|}�|r|���������������������|������������r||z ��}�7|||z���z ��}�@n/#�t����������t����������t����������f$�r�t����������j ��������d|�g|�R������w�xY�w|S�)z�Join two or more pathname components, inserting '/' as needed. If any component is an absolute path, all previous path components will be discarded. An empty last part will result in a path that ends with a separator.Nr���r ���)r:���r;���r6����mapr>����endswith� TypeError�AttributeError�BytesWarning�genericpath�_check_arg_types)�a�pr$���r4����bs��� r5���r ���r ���G���s������� � � �!���A� �1�+�+�C��D���� ���!��H�s�N�N��R�Y��"�"�� �� �A��|�|�C� � �� ������ �T�]�]�3�/�/�� ��� �����a����� ��� �~�|�4��������$�V�Q�3��3�3�3�3� �������Ks����A)B��,B=c����������������������t����������j��������|�������������}�t����������|�������������}|����������������������|������������dz���}|�d|����������|�|d����������}}|r+||t ����������|������������z��k����r|���������������������|������������}||fS�)z�Split a pathname. Returns tuple "(head, tail)" where "tail" is everything after the final slash. Either part may be empty.����N�r:���r;���r6����rfind�len�rstrip)rH���r$����i�head�tails��� r5���r���r���d���s�������� � �!���A� �1�+�+�C� ������q��A��2�A�2���!�"�"��$�D��� ���C��I�I� �%�%��{�{�3������:�r7���c�����������������������t����������j��������|�������������}�t����������|�t����������������������rd}d}nd}d}t ����������j��������|�|d�|������������S�)Nr0�������.r���r���)r:���r;���r1���r2���rE���� _splitext)rH���r$���r(���s��� r5���r ���r ���u���sN������ � �!���A��!�U��������������� ��C��v�6�6�6r7���c������������������B�����t����������j��������|�������������}�|�dd����������|�fS�)zJSplit a pathname into drive and path. On Posix, drive is always empty.Nr���r9���)rH���s��� r5���r���r�������s"������� � �!���A��R�a�R�5�!�8�Or7���c�����������������������t����������j��������|�������������}�t����������|�������������}|����������������������|������������dz���}|�|d����������S�)z)Returns the final component of a pathnamerK���N)r:���r;���r6���rM���)rH���r$���rP���s��� r5���r���r�������s;������ � �!���A� �1�+�+�C� ������q��A��Q�R�R�5�Lr7���c������������������������t����������j��������|�������������}�t����������|�������������}|����������������������|������������dz���}|�d|����������}|r+||t ����������|������������z��k����r|���������������������|������������}|S�)z-Returns the directory component of a pathnamerK���NrL���)rH���r$���rP���rQ���s��� r5���r���r�������sm������ � �!���A� �1�+�+�C� ������q��A��R�a�R�5�D��� ���C��I�I� �%�%��{�{�3�����Kr7���c����������������������� �t����������j��������|�������������}n#�t����������t����������t����������f$�r�Y�dS�w�xY�wt����������j��������|j��������������������S�)z&Test whether a path is a symbolic linkF)r:����lstat�OSError� ValueErrorrC����stat�S_ISLNK�st_mode)r4����sts��� r5���r���r�������sQ������� �X�d�^�^�����Z��0��������u�u������<�� �#�#�#s������2�2c������������������b����� �t����������j��������|��������������n#�t����������t����������f$�r�Y�dS�w�xY�wdS�)zCTest whether a path exists. Returns True for broken symbolic linksFT)r:���rZ���r[���r\���r3���s��� r5���r���r�������sB������� ���������Z� ��������u�u������4s������,�,c���������������������� �t����������j��������|�������������}t����������j��������|j��������������������rdS�n#�t ����������t����������f$�r�Y�dS�w�xY�wt����������j��������|�������������}�t����������|�t����������������������rt����������|�d������������}nt����������|�d������������}t����������|������������} �t����������j��������|������������}n#�t ����������t����������f$�r�Y�dS�w�xY�w|j��������}|j��������}||k����rdS�|j ��������}|j ��������}||k����rdS�dS�)z$Test whether a path is a mount pointF����..r���T)r:���rZ���r]���r^���r_���r[���r\���r;���r1���r2���r ���r*����st_dev�st_ino)r4����s1�parent�s2�dev1�dev2�ino1�ino2s��� r5���r���r�������s'������ �X�d�^�^����<�� �#�#�� ��5� ��� �Z� ��������u�u�������9�T�?�?�D��$�����"��d�E�"�"����d�D�!�!�� �f� � �F�� �X�f� � �����Z� ��������u�u�������9�D� �9�D��t�|�|��t� �9�D� �9�D��t�|�|��t��5s!����2��A�A�$B9��9C� Cc����������������������t����������j��������|�������������}�t����������|�t����������������������rd}nd}|����������������������|������������s|�S�t����������|�������������}|����������������������|d������������}|dk�����rt����������|�������������}|dk����rxdt�����������j��������vrW �ddl }n#�t����������$�r�|�cY�S�w�xY�w �|���������������������t����������j����������������������������������j ��������}n�#�t����������$�r�|�cY�S�w�xY�wt�����������j��������d���������}nw �ddl }n#�t����������$�r�|�cY�S�w�xY�w|�d|����������}t����������|t����������������������rt����������|d������������} �|���������������������|������������}n#�t����������$�r�|�cY�S�w�xY�w|j ��������}|�t"����������j��������dk����r|�S�t����������|�t����������������������rt����������j��������|������������}d }nd }|���������������������|������������}||�|d����������z���p|S�)zOExpand ~ and ~user constructions. If user or $HOME is unknown, do nothing.����~�~rK���r����HOMEN�ASCII�vxworksr0���r���)r:���r;���r1���r2���r>���r6����findrN����environ�pwd�ImportError�getpwuid�getuid�pw_dir�KeyError�str�getpwnam�sys�platform�fsencoderO���) r4����tilder$���rP���ru����userhome�name�pwent�roots ��� r5���r���r�������s3�������9�T�?�?�D��$������������?�?�5�!�!����� �4�.�.�C�� � �#�q���A��1�u�u���I�I���A�v�v����#�#� �� � � � ���� �� �� ����� ���� ��<�<�� ���4�4�;������ �� �� ������ ���� ��z�&�)�H�H� ��J�J�J�J���� �� �� ��K�K�K� ������A�a�C�y���d�E�"�"�� &��t�W�%�%�D� ��L�L��&�&�E�E���� �� �� ���K�K�K� ������<����C�L�I�5�5����$�������;�x�(�(����������t�$�$�H��t�A�B�B�x��(�D�(sH����B��B)�(B)�-+C��C(�'C(�?D��D�D�E��E+�*E+c������������������v����t����������j��������|�������������}�t����������|�t����������������������rSd|�vr|�S�t����������sddl}|���������������������d|j��������������������at����������j��������}d}d}t����������t�����������dd������������}nHd|�vr|�S�t����������sddl}|���������������������d |j��������������������a t����������j��������}d }d}t�����������j��������}d} ��||�|������������}|sn�|���������������������d������������\��}}|� ��������������������d ������������} | ���������������������|������������r| ���������������������|������������r | d d����������} �|�7t����������j��������t�����������j��������t����������j��������| ���������������������������������} n|| ���������} |�|d����������}|�d|����������| z���}�t%����������|�������������}|�|z ��}�n#�t&����������$�r�|}Y�nw�xY�w��|�S�)zZExpand shell variables of form $var and ${var}. Unknown variables are left unchanged.����$r���Ns���\$(\w+|\{[^}]*\})����{����}�environb�$z\$(\w+|\{[^}]*\})�{�}TrK������)r:���r;���r1���r2���� _varprogb�re�compilerq����search�getattr�_varprogrt����span�groupr>���rA���r����fsdecoderN���rz���)r4���r����r�����start�endrt���rP����m�jr�����valuerR���s��� r5���r���r���%��s��������9�T�?�?�D��$�������t����K��� D��I�I�I�� � �#8�"�(�C�C�I��!�������"�j�$�/�/����d�?�?��K��� B��I�I�I��z�z�"6���A�A�H���������*�� �A���F�4��O�O���� ���v�v�a�y�y���1��w�w�q�z�z���?�?�5�!�!�� �d�m�m�C�&8�&8�� ���"��:�D� �����B�J�r�{�4�/@�/@�$A�B�B����� �������8�D�����8�e�#�D��D� � �A��D�L�D�D�� ��� �� �� ��A�A�A� �����(��Ks����9AF&��&F5�4F5)�_path_normpathc������������������������t����������j��������|�������������}�t����������|�t����������������������r5t����������j��������t����������t����������j��������|�������������������������������������pdS�t����������|�������������pdS�)�0Normalize path, eliminating double slashes, etc.rT���r���)r:���r;���r1���r2���r���r����r����r3���s��� r5���r���r������s\�������y������d�E�"�"�� J��;�~�b�k�$�.?�.?�@�@�A�A�I�T�I��d�#�#�*�s�*r7���c������������������0����t����������j��������|�������������}�t����������|�t����������������������r d}d}d}d}nd}d}d}d}|�|k����r|S�|����������������������|������������}|r2|����������������������|d z��������������r|����������������������|d z��������������sd }|����������������������|������������}g�}|D�]M}|||fv�r� ||k����s|s|r|r"|d���������|k����r|���������������������|��������������7|r|�������������������������������������N|}|���������������������|������������}�|r||z��|�z���}�|�p|S�)r����r0���r7���rT���rc���r�����r���r�����������r����) r:���r;���r1���r2���r>���r����append�popr ���) r4���r$����empty�dot�dotdot�initial_slashes�comps� new_comps�comps ��� r5���r���r���^��sh������y������d�E�"�"�� ��C��E��C��F�F��C��E��C��F��5�=�=��J��/�/�#�.�.��� �� ��O�O�C��E�"�"� �+/�?�?�3�q�5�+A�+A� ��O�� � �3����� ��� �� �D���s�|�#�#��������y����� )�"� �� 7� 7�� � ��&�&�&�&��� �� � ��������x�x������� .���&��-�D��{�s�r7���c�����������������������t����������j��������|�������������}�t����������|�������������sLt����������|�t����������������������rt����������j����������������������}nt����������j����������������������}t����������||�������������}�t����������|�������������S�)zReturn an absolute path.) r:���r;���r ���r1���r2����getcwdb�getcwdr ���r���)r4����cwds��� r5���r���r������s`������ �9�T�?�?�D���;�;����d�E�"�"�� ��*�,�,�C�C��)�+�+�C��C������D�>�>�r7���F)�strictc����������������������t����������j��������|�������������}�t����������|�dd����������|�|i�������������\��}}t����������|������������S�)zlReturn the canonical path of the specified filename, eliminating any symbolic links encountered in the path.Nr���)r:���r;���� _joinrealpathr���)�filenamer����r4����oks��� r5���r*���r*������s>��������y��"�"�H��X�b�q�b�\�8�V�R�@�@�H�D�"��4�=�=�r7���c������������������0����t����������|�t����������������������rd}d}d}nd}d}d}t����������j��������}|t����������u�rt ����������}n|rd}nt����������}d�} t����������|������������r|dd�����������}|}�|�r(|���������������������|������������\��} }}| r| |k����r�%| |k����r/|�r*t����������|�������������\��}�} | |k����rt����������|�||������������}�n|}��Zt����������|�| ������������} �t����������j��������|������������} t����������j ��������| j��������������������}n #�|$�r�d }Y�nw�xY�w|s|}���||v�r4||���������}�|����|rt����������j��������|�������������nt����������||������������d fS�d�||<���t����������|�t����������j��������|������������||������������\��}�}|st����������|�|������������d fS�|�||<���|��(|�d fS�)Nr0���rT���rc���r���r���r�����rK���FT)r1���r2���r:���r����r.����FileNotFoundErrorr[���r ���� partitionr���r ���rZ���r]���r^���r_���r�����readlink)r4����restr�����seenr$���r"���r#���r����� ignored_error�maxlinksr�����_�newpathr`����is_linkr����s��� r5���r����r�������s ������$���������������������� ����)� � � �� �� � �� ��H��T�{�{����A�B�B�x���� ��*����s�+�+� ��a���� �t�v�~�~���6�>�>��� �"�4�[�[� ��d��6�>�>���f�f�5�5�D������t�T�"�"�� /���'�"�"�B���l�2�:�.�.�G�G����� �� �� ��G�G�G� ������� ��D���d�?�?���=�D������ 2���� � � � ���G�T�*�*�E�1�1���W� � ��r�{�7�';�';�V�T�J�J���b��� +���d�#�#�U�*�*���W� �U���*�X���:�s����D��D�D�darwinc������������������|����|�st����������d�������������t����������j��������|�������������}�t����������|�t����������������������rd}d}d}nd}d}d}|�|}nt����������j��������|������������} �d ��t����������|���������������������������������|������������D���������������}d ��t����������|����������������������������������|������������D���������������}t����������t����������||g������������������������}|gt����������|������������|z ��z��||d����������z���}|s|S�t����������|��S�#�t����������t����������t����������t����������f$�r�t����������j��������d|�|���������������w�xY�w)z#Return a relative version of a pathzno path specifiedrT���r0���rc���r���r���r���Nc�����������������������g�|�]}|�|��S�r����r������.0�xs��� r5���� <listcomp>zrelpath.<locals>.<listcomp>��s������@�@�@�A�a�@�a�@�@�@r7���c�����������������������g�|�]}|�|��S�r����r����r����s��� r5���r����zrelpath.<locals>.<listcomp>��s������>�>�>�1�A�>�Q�>�>�>r7���r,���)r\���r:���r;���r1���r2���r���r���rN���r���r ���rB���rC���rD����DeprecationWarningrE���rF���) r4���r����r"���r$���r#���� start_list� path_listrP����rel_lists ��� r5���r,���r,������sZ��������.��,�-�-�-� �9�T�?�?�D��$��������������������}����� �%� � ���@�@�����!5�!5�c�!:�!:�@�@�@� �>�>��� � � 3� 3�C� 8� 8�>�>�>� ���j�)�4�5�5�6�6���8�s�:���q�0�1�I�a�b�b�M�A���� ��M��X�����~�|�5G�H��������$�Y��e�<�<�<� ����s����"BD��=D��5D;c��������������������� � ��|�st����������d�������������t����������t����������t����������j��������|�������������������������}�t����������|�d���������t����������������������rd� d� nd� d� �� fd�|�D���������������} �t����������� fd�|�D���������������������������\��}n#�t�����������$�r�t����������d ������������d �w�xY�w� fd�|D���������������}t����������|������������}t����������|������������}|}t����������|������������D�]\��}}|||���������k����r|d |����������}�n�|r� n � d d����������}|� ���������������������|������������z���S�#�t����������t����������f$�r�t����������j��������dg|��R������w�xY�w) zDGiven a sequence of path names, returns the longest common sub-path.z%commonpath() arg is an empty sequencer���r0���rT���r���r���c������������������:������g�|�]}|�������������������������������������S�r����)r���)r����r4���r$���s��� �r5���r����zcommonpath.<locals>.<listcomp>%��s#�������9�9�9�4�t�z�z�#���9�9�9r7���c��������������3����4����K����|�]}|d�d�����������k����V����d�S�)NrK���r����)r����rH���r$���s��� �r5���� <genexpr>zcommonpath.<locals>.<genexpr>(��s/�����������5�5�!��2�A�2��#��5�5�5�5�5�5r7���z%Can't mix absolute and relative pathsNc������������������,������g�|�]}�fd��|D�����������������S�)c������������������$������g�|�]}|�|�k����� |�� S�r����r����)r�����cr"���s��� �r5���r����z)commonpath.<locals>.<listcomp>.<listcomp>,��s#�������:�:�:�a��:�a�6�k�k��k�k�kr7���r����)r����r<���r"���s��� �r5���r����zcommonpath.<locals>.<listcomp>,��s.�������P�P�P�q�:�:�:�:�1�:�:�:�P�P�Pr7���r-���)r\����tupler@���r:���r;���r1���r2����set�min�max� enumerater ���rB���rC���rE���rF���)�paths�split_pathsr ���rf���rh����commonrP���r�����prefixr"���r$���s��� @@r5���r-���r-�����s�����������B��@�A�A�A��#�b�i��'�'�(�(�E��%��(�E�"�"�������������9�9�9�9�5�9�9�9�� P��5�5�5�5�u�5�5�5�5�5�F�E�E���� P�� P�� P��D�E�E�4�O� P�����Q�P�P�P�K�P�P�P�� �� � �� �� � �����b�M�M�� �� �D�A�q��B�q�E�z�z��B�Q�B���������*���3�r��r�7�������(�(�(�(���~�&��������$�\�:�E�:�:�:�:� ����s%���� D,��/B ��D,�� B(�(BD,��,%E)N)*�__doc__r"���r#���r(���r$���r%���r&���r'���r)���r:���r}���r]���rE����__all__r6���r���r ���r ���r���r ���rU���r���r���r���r���r���r���r���r����r����r����posixr����r���rv���r���r*���r����r~���r+���r,���r-���r����r7���r5����<module>r�������sO���� �� �� �� �� �� �� �� �� �� ��� � � � �� � � � ����������������������*��*��*����������������������: �� �� �"7��7��7���(�0���� ���������������$��$��$�����������V6)��6)��6)�z���� �.��.��.�j0+�$�$�$�$�$�$�T+��+��+��+��Q���%��%��%�$��$��$��$��$�%����` �� �� ��"'�����������C��C��C�L�"�l�h�6���!��!��!��!�R#��#��#��#��#s����+A5��5B��?B�