Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 18.188.127.26
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : ntpath.cpython-310.pyc
o

^b�n�@s�dZdZdZdZdZdZdZdZdZdd	l	Z	dd	l
Z
dd	lZdd	lZdd
lTgd�Z
dd
�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zejje_dd�Zdd�Zdd�Zd d!�Zzdd"lmZWneynd	ZYnwd#d$�Zd%d&�Zd'd(�Zd)d*�Z d+d,�Z!zdd-lm"Z"Wney�e!Z#Ynwd.d/�Z#z
dd0lm$Z$m%Z&Wney�e#Z'Ynwd1d2�Z(d3d4�Z)d5d6�d7d8�Z'e*e
d9�o�e
�+�d:d;kZ,dAd<d=�Z-d>d?�Z.z	dd@lm/Z0Wd	Sey�Yd	Sw)Bz�Common pathname manipulations, WindowsNT/95 version.

Instead of importing this module directly, import os and refer to this
module as os.path.
�.�..�\�;�/z.;C:\bin�nul�N)�*)&�normcase�isabs�join�
splitdrive�split�splitext�basename�dirname�commonprefix�getsize�getmtime�getatime�getctime�islink�exists�lexists�isdir�isfile�ismount�
expanduser�
expandvars�normpath�abspath�curdir�pardir�sep�pathsep�defpath�altsep�extsep�devnull�realpath�supports_unicode_filenames�relpath�samefile�sameopenfile�samestat�
commonpathcCst|t�rdSdS)N�\/�\/)�
isinstance�bytes��path�r5�//usr/local/python-3.10/lib/python3.10/ntpath.py�
_get_bothseps"s
r7cCs4t�|�}t|t�r|�dd���S|�dd���S)zaNormalize case of pathname.

    Makes all characters lowercase and all slashes into backslashes.�/�\rr)�os�fspathr1r2�replace�lower��sr5r5r6r	,s

r	cCsjt�|�}t|t�r|�dd��d�rdSn|�dd��d�r!dSt|�d}t|�d	ko4|d	t|�vS)
zTest whether a path is absoluter8r9�\\?\Trr�\\?\�r)	r:r;r1r2r<�
startswithr�lenr7r>r5r5r6r
=s

�r
c

Gs@t�|�}t|t�rd}d}d}nd}d}d}zs|s"|dd�|t|�\}}ttj|�D]>}t|�\}}	|	rG|	d|vrG|sB|sD|}|	}q.|r\||kr\|��|��krZ|}|	}q.|}|rh|d|vrh||}||	}q.|r�|d|vr�|r�|dd�|kr�|||WS||WSttt	fy�t
jd	|g|�R��w)
Nr9r/�:rr0�:r���r)r:r;r1r2r�mapr=�	TypeError�AttributeError�BytesWarning�genericpath�_check_arg_types)
r4�pathsr"�seps�colon�result_drive�result_path�p�p_drive�p_pathr5r5r6rMsN


��
�rcCst�|�}t|�dkr�t|t�rd}d}d}nd}d}d}|�||�}|dd�|dkrq|dd	�|krq|�|d�}|d
krG|dd�|fS|�||d�}||dkr]|dd�|fS|d
kret|�}|d|�||d�fS|dd�|kr�|dd�|dd�fS|dd�|fS)
a�Split a pathname into drive/UNC sharepoint and relative path specifiers.
    Returns a 2-tuple (drive_or_unc, path); either part may be empty.

    If you assign
        result = splitdrive(p)
    It is always true that:
        result[0] + result[1] == p

    If the path contained a drive letter, drive_or_unc will contain everything
    up to and including the colon.  e.g. splitdrive("c:/dir") returns ("c:", "/dir")

    If the path contained a UNC path, the drive_or_unc will contain the host name
    and share up to but not including the fourth directory separator character.
    e.g. splitdrive("//host/computer/dir") returns ("//host/computer", "/dir")

    Paths cannot contain both a drive letter and a UNC path.

    �r9r8rErrrFr�rGNrB)r:r;rDr1r2r<�find)rSr"r%rP�normp�index�index2r5r5r6r|s.

$rcCs�t�|�}t|�}t|�\}}t|�}|r+||d|vr+|d8}|r+||d|vs|d|�||d�}}|�|�p>|}|||fS)z~Split a pathname.

    Return tuple (head, tail) where tail is everything after the final slash.
    Either part may be empty.rBN)r:r;r7rrD�rstrip)rSrO�d�i�head�tailr5r5r6r
�s
�r
cCs4t�|�}t|t�rt�|ddd�St�|ddd�S)Nr9r8�.rrr)r:r;r1r2rL�	_splitext�rSr5r5r6r�s

rcC�t|�dS)z)Returns the final component of a pathnamerB�r
rcr5r5r6r��rcCrd)z-Returns the directory component of a pathnamerrercr5r5r6r�rfrc
Cs6zt�|�}Wn
tttfyYdSwt�|j�S)zhTest whether a path is a symbolic link.
    This will always return false for Windows prior to 6.0.
    F)r:�lstat�OSError�
ValueErrorrJ�stat�S_ISLNK�st_mode�r4�str5r5r6r�s�rc	Cs*zt�|�}WdSttfyYdSw)zCTest whether a path exists.  Returns True for broken symbolic linksFT)r:rgrhrirmr5r5r6r�s��r)�_getvolumepathnamecCspt�|�}t|�}t|�}t|�\}}|r"|d|vr"|p!||vS||vr(dStr6|�|�t|��|�kSdS)zaTest whether a path is a mount point (a drive root, the root of a
    share, or a mounted volume)rTF)r:r;r7rrror\)r4rO�root�restr5r5r6rs
rcCsJt�|�}t|t�r
d}nd}|�|�s|Sdt|�}}||kr9||t|�vr9|d7}||kr9||t|�vs)dtjvrDtjd}n"dtjvrK|Sztjd}Wnty]d}Ynwt	|tjd�}|dkr�|d|�}t|t�rzt�
|�}tj�d�}||kr�|t|�kr�|St	t
|�|�}t|t�r�t�|�}|||d	�S)
zLExpand ~ and ~user constructs.

    If user or $HOME is unknown, do nothing.�~�~rB�USERPROFILE�HOMEPATH�	HOMEDRIVE��USERNAMEN)r:r;r1r2rCrDr7�environ�KeyErrorr�fsdecode�getrr�fsencode)r4�tilder^�n�userhome�drive�target_user�current_userr5r5r6r!s@


�

�



rcCs6t�|�}t|t�r4d|vrd|vr|Sddl}t|j|jdd�}d}d}d}d	}d}ttd
d�}n#d|vr>d|vr>|Sddl}|j|jd}d
}d}d}d}d}tj}|dd�}	d}
t	|�}|
|k�r||
|
d�}||kr�||
dd�}t	|�}z|�
|�}
|	||d|
d�7}	W�qty�|	||7}	|d}
Y�qw||k�r||
d|
d�|kr�|	|7}	|
d7}
�q||
dd�}t	|�}z|�
|�}
Wnty�|	||7}	|d}
Y�qw|d|
�}
z|du�rt�tjt�
|
��}n||
}Wnt�y||
|}Ynw|	|7}	n�||k�r
||
d|
d�|k�r;|	|7}	|
d7}
�q||
d|
d�|k�r�||
dd�}t	|�}z|�
|�}
Wnt�yr|	|||7}	|d}
Y�qw|d|
�}
z|du�r�t�tjt�
|
��}n||
}Wnt�y�|||
|}Ynw|	|7}	�q|dd�}
|
d7}
||
|
d�}|�r�||v�r�|
|7}
|
d7}
||
|
d�}|�r�||v�s�z|du�r�t�tjt�
|
��}n||
}Wnt�y||
}Ynw|	|7}	|�r|
d8}
n|	|7}	|
d7}
|
|ksh|	S)zfExpand shell variables of the forms $var, ${var} and %var%.

    Unknown variables are left unchanged.�$�%rNz_-�ascii�'�{�}�environb�$�%�'�{�}rBrV)r:r;r1r2�string�
ascii_letters�digits�getattrryrDrZrir}r{rz)r4r��varchars�quote�percent�brace�rbrace�dollarry�resrZ�pathlen�c�var�valuer5r5r6r^s�



�
�
��

�
���
����Lrc	CsNt�|�}t|t�rd}d}d}d}d}n
d}d}d}d	}d
}|�|�r&|S|�||�}t|�\}}|�|�r@||7}|�|�}|�|�}d}|t	|�kr�||rW|||kr[||=n6|||kr�|dkr{||d|kr{||d|d�=|d8}q�|dkr�|�
|�r�||=q�|d7}n|d7}|t	|�ksM|s�|s�|�|�||�|�S)
z0Normalize path, eliminating double slashes, etc.r9r8ra�..)s\\.\r@rrrr)z\\.\rArrB)
r:r;r1r2rCr<r�lstripr
rD�endswith�appendr)	r4r"r%r r!�special_prefixes�prefix�compsr^r5r5r6r�sH







�
rcCs@t�|�}t|�st|t�rt��}nt��}t||�}t|�S)z�Return the absolute version of a path as a fallback function in case
    `nt._getfullpathname` is not available or raises OSError. See bpo-31047 for
    more.

    )	r:r;r
r1r2�getcwdb�getcwdrr)r4�cwdr5r5r6�_abspath_fallbacks



r�)�_getfullpathnamec	Cs.ztt|��WSttfyt|�YSw)z&Return the absolute version of a path.)rr�rhrir�r3r5r5r6rs
�r)�_getfinalpathname�readlinkc
Cs�d}t�}t|�|vrY|�t|��z|}t|�}t|�s/t|�s&|}W|Sttt|�|��}Wn"t	yI}z
|j
|vrDWYd}~|S�d}~wtyRY|Swt|�|vs|S)N)rBrVrW��� �2�C�Wi&i(i))�setr	�add�_nt_readlinkr
rrrrrh�winerrorri)r4�allowed_winerror�seenZold_path�exr5r5r6�_readlink_deep&s4	��

����r�cCs�d}d}|rqzt|�}|rt||�WS|WStyn}zM|j|vr#�zt|�}||kr<|r3t||�n|WWYd}~SWn	tyFYnwt|�\}}|r[|s[||WYd}~S|rbt||�n|}WYd}~nd}~ww|s|S)N)rBrVrWr�r�r�r�r�r��{i�i�rw)r�rrhr�r�r
)r4r�r`r��new_path�namer5r5r6�_getfinalpathname_nonstrictPs2
 �����r�F)�strictc

Csvt|�}t|t�r!d}d}d}t��}t|�tt�t��kr dSnd}d}d}t��}t|�tt�kr5dS|�	|�}|sEt
|�sEt||�}zt|�}d	}Wnt
yi}z|rX�|j}t|�}WYd}~nd}~ww|s�|�	|�r�|�	|�r�||t|�d�}	n|t|�d�}	zt|	�|kr�|	}W|SW|St
y�}z|j|kr�|	}WYd}~|SWYd}~|Sd}~ww|S)
Nr@s\\?\UNC\s\\s\\.\NULrAz\\?\UNC\z\\z\\.\NULr)rr1r2r:r�r	r}r'r�rCr
rr�rhr�r�rD)
r4r�r�Z
unc_prefixZnew_unc_prefixr�Z
had_prefixZinitial_winerrorr�Zspathr5r5r6r(~s^
�

��
��

���r(�getwindowsversionrWrVcCsXt�|�}t|t�rd}d}d}nd}d}d}|dur|}|s#td��t�|�}zott|��}tt|��}t|�\}}t|�\}	}
t|�t|	�krQtd	|	|f��d
d�|�	|�D�}dd�|
�	|�D�}d
}
t
||�D]\}}t|�t|�krzq|
d7}
ql|gt|�|
||
d�}|s�|WSt|�WSt
ttttfy�t�d||��w)z#Return a relative version of a pathr9rar�rrrNzno path specifiedz&path is on mount %r, start on mount %rcS�g|]}|r|�qSr5r5��.0�xr5r5r6�
<listcomp>��zrelpath.<locals>.<listcomp>cSr�r5r5r�r5r5r6r��r�rrBr*)r:r;r1r2rirrrr	r
�ziprDrrIrJrK�DeprecationWarningrLrM)r4�startr"r r!�	start_abs�path_abs�start_drive�
start_rest�
path_drive�	path_rest�
start_list�	path_listr^�e1�e2�rel_listr5r5r6r*�sJ


�

�r*c	s�|std��tttj|��}t|dt�rd�d�d�nd�d�d�z���fd	d
�|D�}�fdd
�|D�}zt�fdd
�|D��\}WntyPtd�d�wttdd
�|D���dkrbtd��t	|d�
����\}}|���}�fdd
�|D�}�fdd
�|D�}t|�}t
|�}t|�D]\}	}
|
||	kr�|d|	�}q�q�|dt|��}|r�|�n|}|��|�WSttfy�tjdg|�R��w)zDGiven a sequence of path names, returns the longest common sub-path.z%commonpath() arg is an empty sequencerr9r8rarrrcs g|]}t|��������qSr5)rr<r=)r�rS)r%r"r5r6r��s zcommonpath.<locals>.<listcomp>csg|]	\}}|����qSr5re�r�r]rS�r"r5r6r��sc3s$�|]
\}}|dd��kVqdS)NrBr5r�r�r5r6�	<genexpr>s�"zcommonpath.<locals>.<genexpr>z%Can't mix absolute and relative pathsNcss�|]\}}|VqdS�Nr5r�r5r5r6r�	s�rBzPaths don't have the same drivec�g|]
}|r|�kr|�qSr5r5�r�r��r r5r6r��csg|]}�fdd�|D��qS)cr�r5r5r�r�r5r6r�r�z)commonpath.<locals>.<listcomp>.<listcomp>r5)r�r?r�r5r6r�sr.)ri�tuplerHr:r;r1r2r�rDrr<r
�min�max�	enumeraterrIrJrLrM)rN�drivesplits�split_pathsr
r�r4�common�s1�s2r^r�r�r5)r%r r"r6r.�sL
�
��r.)�_isdirr�)1�__doc__r r!r&r"r#r%r$r'r:�sysrjrL�__all__r7r	r
rrr
rrbrrrr�ntro�ImportErrorrrrrr�r�rr�r�r�r(r�r��hasattrr�r)r*r.r�rr5r5r5r6�<module>sz	
/8
�=q2��*.
4�
84�
© 2025 GrazzMean