Uname: Linux server230.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 198.54.115.51
Your Ip: 216.73.216.44
User: myflzuab (636) | Group: myflzuab (635)
Safe Mode: OFF
Disable Function:
NONE

name : posixpath.cpython-310.pyc
o

�=?h4@�@sdZdZdZdZdZdZdZdZdZddl	Z	ddl
Z
ddlZddlZdd	lTgd
�Z
dd�Zd
d�Zdd�Zdd�Zdd�Zdd�Zejje_dd�Zdd�Zdd�Zdd�Zdd �Zd!d"�Zd#d$�Zdadad%d&�Zd'd(�Zd)d*�Z d+d,�d-d.�Z!d/d0�Z"e
j#d1kZ$d6d2d3�Z%d4d5�Z&dS)7a�Common operations on Posix pathnames.

Instead of importing this module directly, import os and refer to
this module as os.path.  The "os.path" name is an alias for this
module on Posix systems; on other systems (e.g. Windows),
os.path provides the same operations in a manner specific to that
platform, and is an alias to another module (e.g. ntpath).

Some of this can actually be useful on non-Posix systems too, e.g.
for manipulation of the pathname component of URLs.
�.�..�/�:z
/bin:/usr/binNz	/dev/null�)�*)'�normcase�isabs�join�
splitdrive�split�splitext�basename�dirname�commonprefix�getsize�getmtime�getatime�getctime�islink�exists�lexists�isdir�isfile�ismount�
expanduser�
expandvars�normpath�abspath�samefile�sameopenfile�samestat�curdir�pardir�sep�pathsep�defpath�altsep�extsep�devnull�realpath�supports_unicode_filenames�relpath�
commonpath�
ALLOW_MISSINGcCst|t�rdSdS)N�/r)�
isinstance�bytes��path�r3�0/opt/alt/python310/lib64/python3.10/posixpath.py�_get_sep)s
r5cCs
t�|�S)z6Normalize case of pathname.  Has no effect under Posix��os�fspath)�sr3r3r4r4s
rcCst�|�}t|�}|�|�S)zTest whether a path is absolute)r7r8r5�
startswith)r9r#r3r3r4r<s

rc
Gs�t�|�}t|�}|}z0|s|dd�|ttj|�D]}|�|�r&|}q|r-|�|�r2||7}q|||7}qW|StttfyPt	j
d|g|�R��w)z�Join two or more pathname components, inserting '/' as needed.
    If any component is an absolute path, all previous path components
    will be discarded.  An empty last part will result in a path that
    ends with a separator.Nrr	)r7r8r5�mapr:�endswith�	TypeError�AttributeError�BytesWarning�genericpath�_check_arg_types)�a�pr#r2�br3r3r4r	Gs$


�
��r	cCs`t�|�}t|�}|�|�d}|d|�||d�}}|r,||t|�kr,|�|�}||fS)z�Split a pathname.  Returns tuple "(head, tail)" where "tail" is
    everything after the final slash.  Either part may be empty.�N�r7r8r5�rfind�len�rstrip)rCr#�i�head�tailr3r3r4rds

rcCs6t�|�}t|t�rd}d}nd}d}t�||d|�S)Nr.�.rr)r7r8r/r0r@�	_splitext)rCr#r'r3r3r4rus

rcCst�|�}|dd�|fS)zJSplit a pathname into drive and path. On Posix, drive is always
    empty.Nrr6)rCr3r3r4r
�s
r
cCs,t�|�}t|�}|�|�d}||d�S)z)Returns the final component of a pathnamerEN)r7r8r5rG)rCr#rJr3r3r4r
�s
r
cCsNt�|�}t|�}|�|�d}|d|�}|r%||t|�kr%|�|�}|S)z-Returns the directory component of a pathnamerENrF)rCr#rJrKr3r3r4r�s

rc
Cs6zt�|�}Wn
tttfyYdSwt�|j�S)z&Test whether a path is a symbolic linkF)r7�lstat�OSError�
ValueErrorr>�stat�S_ISLNK�st_mode)r2�str3r3r4r�s�rc	Cs*zt�|�WdSttfyYdSw)zCTest whether a path exists.  Returns True for broken symbolic linksFT)r7rOrPrQr1r3r3r4r�s��rc	Cs�zt�|�}WnttfyYdSwt�|j�rdSt�|�}t|t	�r,t
|d�}nt
|d�}t|�}zt�|�}WnttfyHYdSw|j}|j}||krUdS|j
}|j
}||kradSdS)z$Test whether a path is a mount pointF�..rT)r7rOrPrQrRrSrTr8r/r0r	r)�st_dev�st_ino)r2�s1�parent�s2�dev1�dev2�ino1�ino2r3r3r4r�s4�


�rc	CsHt�|�}t|t�r
d}nd}|�|�s|St|�}|�|d�}|dkr(t|�}|dkrQdtjvrKddl	}z
|�
t���j}Wn;t
yJ|YSwtjd}n*ddl	}|d|�}t|t�ret|d�}z|�|�}Wnt
yw|YSw|j}|dur�tjdkr�|St|t�r�t�|�}d	}nd
}|�|�}|||d�p�|S)zOExpand ~ and ~user constructions.  If user or $HOME is unknown,
    do nothing.�~�~rEr�HOMEN�ASCII�vxworksr.r)r7r8r/r0r:r5�findrH�environ�pwd�getpwuid�getuid�pw_dir�KeyError�str�getpwnam�sys�platform�fsencoderI)	r2�tilder#rJrg�userhome�name�pwent�rootr3r3r4r�sJ



�

�


rcCsTt�|�}t|t�r+d|vr|Stsddl}|�d|j�atj}d}d}t	tdd�}nd|vr1|St
s>ddl}|�d	|j�a
t
j}d
}d}tj}d}	|||�}|sU	|S|�d�\}}|�
d
�}	|	�|�rq|	�|�rq|	d
d�}	z|dur�t�tjt�|	��}
n||	}
Wnty�|}Ynw||d�}|d|�|
}t|�}||7}qK)zZExpand shell variables of form $var and ${var}.  Unknown variables
    are left unchanged.�$rNs\$(\w+|\{[^}]*\})�{�}�environb�$z\$(\w+|\{[^}]*\})�{�}TrE���)r7r8r/r0�	_varprogb�re�compilerc�search�getattr�_varprogrf�span�groupr:r<rp�fsdecoderkrH)r2rr��start�endrfrJ�m�jrs�valuerLr3r3r4rsV


�
���rc	Cs�t�|�}t|t�rd}d}d}d}nd}d}d}d}||kr!|S|�|�}|r8|�|d	�r8|�|d
�s8d	}|�|�}g}|D]%}|||fvrJqA||ksZ|sR|rZ|r`|d|kr`|�|�qA|rf|��qA|}|�|�}|rv|||}|py|S)z0Normalize path, eliminating double slashes, etc.r.�rMrVr�rr��r})	r7r8r/r0r:r�append�popr	)	r2r#�empty�dot�dotdot�initial_slashes�comps�	new_comps�compr3r3r4rRsJ


��
��
rcCs@t�|�}t|�st|t�rt��}nt��}t||�}t|�S)zReturn an absolute path.)	r7r8rr/r0�getcwdb�getcwdr	r)r2�cwdr3r3r4rys



rF)�strictcCs,t�|�}t|dd�||i�\}}t|�S)zlReturn the canonical path of the specified filename, eliminating any
symbolic links encountered in the path.Nr)r7r8�
_joinrealpathr)�filenamer�r2�okr3r3r4r)�s
r)cCs|t|t�rd}d}d}n	d}d}d}tj}|turt}n|r!d}nt}d}	t|�r1|dd�}|}|r�|�|�\}
}}|
rA|
|krBq1|
|kr\|rYt	|�\}}
|
|krXt
|||�}n|}q1t
||
�}zt�|�}
Wn|ysd	}Ynwt�
|
j�}|s|}q1||vr�||}|dur�q1|r�t�|�nt
||�d	fSd||<t|t�|�||�\}}|s�t
||�d	fS|||<|s3|d
fS)Nr.rMrVrrrr3rEFT)r/r0r7r�r-�FileNotFoundErrorrPr�	partitionrr	rOrRrSrTr��readlink)r2�restr��seenr#r!r"r��
ignored_error�maxlinksrs�_�newpathrU�is_linkr�r3r3r4r��sj
�
��,r��darwinc	Cs�|std��t�|�}t|t�rd}d}d}nd}d}d}|dur$|}nt�|�}z9d	d
�t|��|�D�}dd
�t|��|�D�}tt||g��}|gt|�|||d�}|s^|WSt	|�WSt
ttt
fyut�d||��w)
z#Return a relative version of a pathzno path specifiedrMr.rVrrrNcS�g|]}|r|�qSr3r3��.0�xr3r3r4�
<listcomp>��zrelpath.<locals>.<listcomp>cSr�r3r3r�r3r3r4r��r�r+)rQr7r8r/r0rrrHrr	r=r>r?�DeprecationWarningr@rA)	r2r�r!r#r"�
start_list�	path_listrJ�rel_listr3r3r4r+�s2



�r+c		s$|std��tttj|��}t|dt�rd�d�nd�d�z`�fdd�|D�}zt�fd	d
�|D��\}WntyBtd�d�w�fd
d�|D�}t|�}t	|�}|}t
|�D]\}}|||krl|d|�}nqZ|rq�n�dd�}|��|�WStt
fy�tjdg|�R��w)zDGiven a sequence of path names, returns the longest common sub-path.z%commonpath() arg is an empty sequencerr.rMrrcsg|]}|����qSr3)r)r�r2�r#r3r4r�szcommonpath.<locals>.<listcomp>c3s �|]}|dd��kVqdS)NrEr3)r�rCr�r3r4�	<genexpr>s�zcommonpath.<locals>.<genexpr>z%Can't mix absolute and relative pathsNcsg|]}�fdd�|D��qS)csg|]
}|r|�kr|�qSr3r3)r��c�r!r3r4r�sz)commonpath.<locals>.<listcomp>.<listcomp>r3)r�r9r�r3r4r�sr,)rQ�tupler;r7r8r/r0�set�min�max�	enumerater	r=r>r@rA)	�paths�split_pathsrrYr[�commonrJr��prefixr3)r!r#r4r,s<
���r,)N)'�__doc__r!r"r'r#r$r%r&r(r7rnrRr@�__all__r5rrr	rrrNr
r
rrrrrr�r~rrrr)r�ror*r+r,r3r3r3r4�<module>sN

		

+55'	
F
)
© 2025 GrazzMean