File: //proc/self/root/opt/alt/python311/lib64/python3.11/__pycache__/genericpath.cpython-311.pyc
�
    !A?h~  �                   �   � d Z ddlZddlZg d�Zd� Zd� Zd� Zd� Zd� Zd	� Z	d
� Z
d� Zd� Zd
� Z
d� Zd� Zd� Zej         G d� 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   � 	 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	   '