Edit File: genericpath.cpython-311.opt-1.pyc
� �����fo�����������������������p�����d�Z�ddlZddlZg�d�Zd��Zd��Zd��Zd��Zd��Zd ��Z d ��Z d��Zd��Zd ��Z d��Zd��Zd��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������������������b����� �t����������j��������|��������������n#�t����������t����������f$�r�Y�dS�w�xY�wdS�)zDTest whether a path exists. Returns False for broken symbolic linksFT)�os�stat�OSError� ValueError)�paths��� �2/opt/alt/python311/lib64/python3.11/genericpath.pyr���r������sB������� ��� � � � ���Z� ��������u�u������4�������,�,c����������������������� �t����������j��������|�������������}n#�t����������t����������f$�r�Y�dS�w�xY�wt����������j��������|j��������������������S�)z%Test whether a path is a regular fileF)r���r���r���r����S_ISREG�st_mode)r����sts��� r���r ���r ������sO������� �W�T�]�]�����Z� ��������u�u������<�� �#�#�#r���c����������������������� �t����������j��������|�������������}n#�t����������t����������f$�r�Y�dS�w�xY�wt����������j��������|j��������������������S�)z<Return true if the pathname refers to an existing directory.F)r���r���r���r����S_ISDIRr���)�sr���s��� r���r ���r ���'���sO������� �W�Q�Z�Z�����Z� ��������u�u������<�� �#�#�#r���c������������������4�����t����������j��������|�������������j��������S�)z1Return the size of a file, reported by os.stat().)r���r����st_size��filenames��� r���r���r���0���s������ �7�8���$�$�����c������������������4�����t����������j��������|�������������j��������S�)zCReturn the last modification time of a file, reported by os.stat().)r���r����st_mtimer���s��� r���r���r���5���������� �7�8���%�%r!���c������������������4�����t����������j��������|�������������j��������S�)z=Return the last access time of a file, reported by os.stat().)r���r����st_atimer���s��� r���r���r���:���r$���r!���c������������������4�����t����������j��������|�������������j��������S�)zAReturn the metadata change time of a file, reported by os.stat().)r���r����st_ctimer���s��� r���r���r���?���r$���r!���c������������������6����|�sdS�t����������|�d���������t����������t����������f������������s't����������t����������t����������j��������|�������������������������}�t ����������|�������������}t����������|�������������}t����������|������������D�]\��}}|||���������k����r|d|����������c�S��|S�)zGGiven a list of pathnames, returns the longest common leading component��r���N) � isinstance�list�tuple�mapr����fspath�min�max� enumerate)�m�s1�s2�i�cs��� r���r���r���E���s���������R�R� ��a��d�T�5�M�*�*��%��#�b�i��#�#�$�$�� �Q���B� �Q���B��"� � �������1���1��:�:��b�q�b�6�M�M�M��� �Ir!���c������������������B�����|�j���������|j���������k����o|�j��������|j��������k����S�)z5Test whether two stat buffers reference the same file)�st_ino�st_dev)r4���r5���s��� r���r ���r ���W���s$�������I���"�� #��I���"�$r!���c������������������r�����t����������j��������|�������������}t����������j��������|������������}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. )r���r���r ���)�f1�f2r4���r5���s��� r���r���r���^���s.������� �����B� �����B��B����r!���c������������������r�����t����������j��������|�������������}t����������j��������|������������}t����������||������������S�)z:Test whether two open file objects reference the same file)r����fstatr ���)�fp1�fp2r4���r5���s��� r���r���r���k���s,������ ��#���B� ��#���B��B����r!���c������������������>����|�����������������������|������������}|r%|�����������������������|������������}t����������||������������}|�����������������������|������������}||k����r;|dz���}||k�����r0|�||dz�������������|k����r|�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���)�rfindr1���)�p�sep�altsep�extsep�sepIndex�altsepIndex�dotIndex� filenameIndexs��� r���� _splitextrM���y���s���������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|j��������j����������������������d��|r|rt����������d������������d��d�S�d�S�)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�hasbytesr���s��� r����_check_arg_typesrX�������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!���)�__doc__r���r����__all__r���r ���r ���r���r���r���r���r���r ���r���r���rM���rX�����r!���r����<module>r\������s������� � � � � �����������������$��$��$�$��$��$�%��%��%� &��&��&� &��&��&� &��&��&������$$��$��$����������������.T��T��T��T��Tr!���