File manager - Edit - /usr/lib/python3.10/__pycache__/genericpath.cpython-310.pyc
Back
o ����}�5ho����������������������@���s����d�Z�ddlZddlZg�d�Zdd��Zdd��Zdd ��Zd d��Zdd ��Zdd��Z dd��Z dd��Zdd��Zdd��Z dd��Zdd��Zdd��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�������������� ���C���s*���zt��|���W�dS��ttfy���Y�dS�w�)zDTest whether a path exists. Returns False for broken symbolic linksFT)�os�stat�OSError� ValueError)�path��r����"/usr/lib/python3.10/genericpath.pyr������s�����r���c�������������� ���C����4���zt��|��}W�n�ttfy���Y�dS�w�t�|j�S�)z%Test whether a path is a regular fileF)r ���r���r���r����S_ISREG�st_mode)r����str���r���r���r �����������r ���c�������������� ���C���r���)z<Return true if the pathname refers to an existing directory.F)r ���r���r���r����S_ISDIRr���)�sr���r���r���r���r���'���r���r���c�����������������C�������t��|��jS�)z1Return the size of a file, reported by os.stat().)r ���r����st_size��filenamer���r���r���r���0�������r���c�����������������C���r���)zCReturn the last modification time of a file, reported by os.stat().)r ���r����st_mtimer���r���r���r���r���5���r���r���c�����������������C���r���)z=Return the last access time of a file, reported by os.stat().)r ���r����st_atimer���r���r���r���r���:���r���r���c�����������������C���r���)zAReturn the metadata change time of a file, reported by os.stat().)r ���r����st_ctimer���r���r���r���r���?���r���r���c�����������������C���sl���|�sdS�t�|�d�ttf�stttj|���}�t|��}t|��}t|�D�]\}}|||�kr3|d|����S�q!|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�cr���r���r���r���E���s����r���c�����������������C���s���|�j�|j�ko|�j|jkS�)z5Test whether two stat buffers reference the same file)�st_ino�st_dev)r-���r.���r���r���r���r���W���s��� �r���c�����������������C�������t��|��}t��|�}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�f2r-���r.���r���r���r���r ���^���s��� r ���c�����������������C���r3���)z:Test whether two open file objects reference the same file)r ����fstatr���)�fp1�fp2r-���r.���r���r���r���r���k���s��� r���c�����������������C���s����|���|�}|r|���|�}t||�}|���|�}||kr@|d�}||k�r@|�||d���|kr8|�d|��|�|d��fS�|d7�}||k�s"|�|�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���)�rfindr*���)�p�sep�altsep�extsep�sepIndex�altsepIndex�dotIndex� filenameIndexr���r���r���� _splitexty���s��� �rC���c�����������������G���sb���d�}}|D�]}t�|t�rd}qt�|t�rd}qt|���d|jj���d��|r-|r/td�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���r���r���r����_check_arg_types����s��� �� �rM���)�__doc__r ���r����__all__r���r ���r���r���r���r���r���r���r���r ���r���rC���rM���r���r���r���r����<module>���s"����
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings