403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.9/site-packages/pip/_internal/utils/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/pip/_internal/utils/__pycache__/filesystem.cpython-39.pyc
a

X��e�@sfddlZddlZddlZddlZddlZddlmZddlmZddl	m
Z
mZmZm
Z
mZmZddlmZmZmZddlmZddlmZeed�d	d
�Zeee
eeddfd�dd
��Zeded�ed�d�Zeej�Zeed�dd�Zeed�dd�Zeee
ed�dd�Z eee!e"fd�dd�Z#eed�dd�Z$eee!e"fd�dd�Z%eed�dd �Z&dS)!�N)�contextmanager)�NamedTemporaryFile)�Any�BinaryIO�	Generator�List�Union�cast)�retry�stop_after_delay�
wait_fixed)�get_path_uid)�format_size)�path�returncCs�tjdksttd�sdStj�|�s(J�d}||kr�tj�|�r�t��dkrvzt|�}Wnt	ylYdS0|dkSt�
|tj�Sq,|tj�|�}}q,dS)N�win32�geteuidTrF)
�sys�platform�hasattr�osr�isabs�lexistsrr
�OSError�access�W_OK�dirname)rZpreviousZpath_uid�r�B/usr/lib/python3.9/site-packages/pip/_internal/utils/filesystem.py�check_path_ownersr)r�kwargsrcks�tfdtj�|�tj�|�dd�|���T}tt|�}z |VW|��t�|�	��n|��t�|�	��0Wd�n1s�0YdS)a%Return a file-like object pointing to a tmp file next to path.

    The file is created securely and is ensured to be written to disk
    after the context reaches its end.

    kwargs will be passed to tempfile.NamedTemporaryFile to control
    the way the temporary file will be opened.
    Fz.tmp)�delete�dir�prefix�suffixN)
rrrr�basenamer	r�flush�fsync�fileno)rr �f�resultrrr�adjacent_tmp_file+s 


��
�r+T�g�?)Zreraise�stop�waitcCsHtj�|�s(tj�|�}||kr"q(|}qtjdkr@t�|tj�St|�S)zgCheck if a directory is writable.

    Uses os.access() on POSIX, tries creating files on Windows.
    �posix)rr�isdirr�namerr�_test_writable_dir_win)r�parentrrr�test_writable_dirLs
r4c	s�d}d�td�D]�}|d��fdd�td�D��}tj�||�}zt�|tjtjBtjB�}Wn&tyrYqt	y�YdS0t�
|�t�|�d	Sqtd
��dS)NZ(accesstest_deleteme_fishfingers_custard_Z$abcdefghijklmnopqrstuvwxyz0123456789�
�c3s|]}t���VqdS�N)�random�choice)�.0�_�Zalphabetrr�	<genexpr>d�z)_test_writable_dir_win.<locals>.<genexpr>�FTz3Unexpected condition testing for writable directory)
�range�joinrr�open�O_RDWR�O_CREAT�O_EXCL�FileExistsError�PermissionError�close�unlinkr)rr%r;r1�file�fdrr<rr2^s 


r2)r�patternrcsBg}t�|�D].\�}}t�||�}|��fdd�|D��q|S)z�Returns a list of absolute paths of files beneath path, recursively,
    with filenames which match the UNIX-style shell glob pattern.c3s|]}tj��|�VqdSr7)rrrA)r:r)��rootrrr=�r>zfind_files.<locals>.<genexpr>)r�walk�fnmatch�filter�extend)rrLr*r;�files�matchesrrMr�
find_fileszs
rUcCstj�|�rdStj�|�S)Nr)rr�islink�getsize�rrrr�	file_size�srYcCstt|��Sr7)rrYrXrrr�format_file_size�srZcCsBd}t�|�D].\}}}|D]}tj�||�}|t|�7}qq|S)Ng)rrOrrArY)r�sizerNZ_dirsrS�filenameZ	file_pathrrr�directory_size�sr]cCstt|��Sr7)rr]rXrrr�format_directory_size�sr^)'rPrZos.pathr8r�
contextlibrZtempfiler�typingrrrrrr	Zpip._vendor.tenacityr
rrZpip._internal.utils.compatr
Zpip._internal.utils.miscr�str�boolrr+Z_replace_retry�replacer4r2rU�int�floatrYrZr]r^rrrr�<module>s, 

	

Youez - 2016 - github.com/yon3zu
LinuXploit