HEX
Server: Apache/2.4.62 (Debian)
System: Linux MIA-VPS-VM01781 5.10.0-32-amd64 #1 SMP Debian 5.10.223-1 (2024-08-10) x86_64
User: webmaster (1001)
PHP: 8.2.29
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //lib/python3.7/__pycache__/genericpath.cpython-37.pyc
B

U��e��@s�dZddlZddlZddddddd	d
ddd
gZdd�Zdd
�Zdd	�Zdd�Zdd�Zdd�Z	dd�Z
dd�Zdd
�Zdd�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�samestatcCs(yt�|�Wntk
r"dSXdS)zDTest whether a path exists.  Returns False for broken symbolic linksFT)�os�stat�OSError)�path�r�!/usr/lib/python3.7/genericpath.pyrs
cCs0yt�|�}Wntk
r"dSXt�|j�S)z%Test whether a path is a regular fileF)r
rr�S_ISREG�st_mode)r�strrrr	s
cCs0yt�|�}Wntk
r"dSXt�|j�S)z<Return true if the pathname refers to an existing directory.F)r
rr�S_ISDIRr)�srrrrr's
cCst�|�jS)z1Return the size of a file, reported by os.stat().)r
r�st_size)�filenamerrrr0scCst�|�jS)zCReturn the last modification time of a file, reported by os.stat().)r
r�st_mtime)rrrrr5scCst�|�jS)z=Return the last access time of a file, reported by os.stat().)r
r�st_atime)rrrrr:scCst�|�jS)zAReturn the metadata change time of a file, reported by os.stat().)r
r�st_ctime)rrrrr?scCsl|sdSt|dttf�s*tttj|��}t|�}t|�}x,t|�D] \}}|||krD|d|�SqDW|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�crrrrEscCs|j|jko|j|jkS)z5Test whether two stat buffers reference the same file)�st_ino�st_dev)r'r(rrrrWscCst�|�}t�|�}t||�S)z9Test whether two pathnames reference the same actual file)r
rr)�f1�f2r'r(rrrr
^s

cCst�|�}t�|�}t||�S)z:Test whether two open file objects reference the same file)r
�fstatr)�fp1�fp2r'r(rrrrgs

cCs�|�|�}|r"|�|�}t||�}|�|�}||kr~|d}x@||kr||||d�|krr|d|�||d�fS|d7}q>W||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�	_splitextus




r<cGsbd}}xB|D]:}t|t�r"d}qt|t�r2d}qtd||jjf�d�qW|r^|r^td�d�dS)NFTz*%s() argument must be str or bytes, not %rz.Can't mix strings and bytes in path components)r�str�bytes�	TypeError�	__class__�__name__)�funcname�args�hasstr�hasbytesrrrr�_check_arg_types�s


rF)�__doc__r
r�__all__rr	rrrrrrrr
rr<rFrrrr�<module>s$