Server IP : 147.93.80.58 / Your IP : 216.73.216.29 Web Server : LiteSpeed System : Linux id-dci-web1866.main-hosting.eu 5.14.0-503.38.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 18 08:52:10 EDT 2025 x86_64 User : u939086737 ( 939086737) PHP Version : 8.2.28 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib64/python3.9/__pycache__/ |
Upload File : |
a �DOgo�@s�dZddlZddlZgd�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 Cs,zt�|�Wnttfy&YdS0dS)zDTest whether a path exists. Returns False for broken symbolic linksFT)�os�stat�OSError� ValueError)�path�r�#/usr/lib64/python3.9/genericpath.pyrs rc Cs4zt�|�}Wnttfy&YdS0t�|j�S)z%Test whether a path is a regular fileF)r rrr�S_ISREG�st_mode)r�strrrr s r c Cs4zt�|�}Wnttfy&YdS0t�|j�S)z<Return true if the pathname refers to an existing directory.F)r rrr�S_ISDIRr)�srrrrr's rcCst�|�jS)z1Return the size of a file, reported by os.stat().)r r�st_size��filenamerrrr0srcCst�|�jS)zCReturn the last modification time of a file, reported by os.stat().)r r�st_mtimerrrrr5srcCst�|�jS)z=Return the last access time of a file, reported by os.stat().)r r�st_atimerrrrr:srcCst�|�jS)zAReturn the metadata change time of a file, reported by os.stat().)r r�st_ctimerrrrr?srcCsl|sdSt|dttf�s*tttj|��}t|�}t|�}t|�D]$\}}|||krB|d|�SqB|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�crrrrEsrcCs|j|jko|j|jkS)z5Test whether two stat buffers reference the same file)�st_ino�st_dev)r)r*rrrrWs �rcCst�|�}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 rr)�f1�f2r)r*rrrr ^s r cCst�|�}t�|�}t||�S)z:Test whether two open file objects reference the same file)r �fstatr)�fp1�fp2r)r*rrrrks rcCs�|�|�}|r"|�|�}t||�}|�|�}||krz|d}||krz|||d�|krp|d|�||d�fS|d7}q<||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� filenameIndexrrr� _splitextys r>cGs`d}}|D]<}t|t�r d}qt|t�r0d}qt|�d|jj���d�q|r\|r\td�d�dS)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�hasbytesrrrr�_check_arg_types�s ��rH)�__doc__r r�__all__rr rrrrrrrr rr>rHrrrr�<module>s