403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python312/Lib/site-packages/pip/_internal/utils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python312/Lib/site-packages/pip/_internal/utils/__pycache__/filesystem.cpython-312.pyc
�

T8�h|���ddlmZddlZddlZddlZddlZddlZddlmZddl	m
Z
ddlmZddl
mZmZmZddlmZddlmZdd	lmZdd
�Ze
dd��Zedd
��ej2�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Z y)�)�annotationsN)�	Generator)�contextmanager)�NamedTemporaryFile)�Any�BinaryIO�cast)�get_path_uid)�format_size)�retryc���tjdk(sttd�sytjj|�sJ�d}||k7r�tjj
|�rLtj�dk(r	t|�}|dk(Stj|tj�S|tjj|�}}||k7r��y#t$rYywxYw)N�win32�geteuidTrF)
�sys�platform�hasattr�os�path�isabs�lexistsrr
�OSError�access�W_OK�dirname)r�previous�path_uids   �@C:\Python312\Lib\site-packages\pip/_internal/utils/filesystem.py�check_path_ownerrs����|�|�w��g�b�)�&<��
�7�7�=�=������H�
�(�
�
�7�7�?�?�4� ��z�z�|�q� �!�+�D�1�H� �1�}�$��y�y��r�w�w�/�/�!�2�7�7�?�?�4�#8�d�H��(�
����!� �!�s�C � 	C,�+C,c+��K�tddtjj|�tjj	|�dd�|��5}tt|�}	|��|j�tj|j��	ddd�y#|j�tj|j��wxYw#1swYyxYw�w)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)r�kwargs�f�results    r�adjacent_tmp_filer,-s�����
�
���G�G�O�O�D�!��w�w����%��	
�
�
�
��h��"��	&��L��L�L�N��H�H�V�]�]�_�%�
�
��
�L�L�N��H�H�V�]�]�_�%��
�
�s6�AC$�
C�B �#3C�	C$� 5C�C�C!�C$�g�?)�stop_after_delay�waitc�R�tjj|�sGtjj|�}||k(rn"|}tjj|�s�Gtjdk(r$tj
|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�parents  r�test_writable_dirr6Ksu���g�g�m�m�D�!�������&���T�>����	�g�g�m�m�D�!�
�w�w�'���y�y��r�w�w�'�'�!�$�'�'�c����d}d�td�D]�}|dj�fd�td�D��z}tjj||�}	tj|tj
tjztjz�}tj|�tj|�ytd	��#t$rY��t$rYywxYw)
N�(accesstest_deleteme_fishfingers_custard_�$abcdefghijklmnopqrstuvwxyz0123456789�
�c3�H�K�|]}tj�����y�w�N)�random�choice)�.0�_�alphabets  �r�	<genexpr>z)_test_writable_dir_win.<locals>.<genexpr>cs�����!L�8�a�&�-�-��"9�8�s�"�TFz3Unexpected condition testing for writable directory)
�range�joinrr�open�O_RDWR�O_CREAT�O_EXCL�close�unlink�FileExistsError�PermissionErrorr)rr%rBr3�file�fdrCs      @rr4r4]s����:�H�5�H�
�2�Y���"�'�'�!L�5��8�!L�L�L���w�w�|�|�D�$�'��	�����r�y�y�2�:�:�5��	�	�A�B�B�
�H�H�R�L��I�I�d�O��#�(�G�
H�H���	���	��
	�s�AC�	C0�$C0�/C0c���g}tj|�D]6\�}}tj||�}|j	�fd�|D���8|S)z�Returns a list of absolute paths of files beneath path, recursively,
    with filenames which match the UNIX-style shell glob pattern.c3�^�K�|]$}tjj�|����&y�wr>)rrrG)rAr*�roots  �rrDzfind_files.<locals>.<genexpr>s!�����=�W��b�g�g�l�l�4��+�W�s�*-)r�walk�fnmatch�filter�extend)r�patternr+rB�files�matchesrTs      @r�
find_filesr\ysK����F��'�'�$�-���a���.�.���0���
�
�=�W�=�=�(��Mr7c��tjj|�rytjj|�S)Nr)rr�islink�getsize�rs r�	file_sizera�s(��	�w�w�~�~�d���
�7�7�?�?�4� � r7c�*�tt|��Sr>)rrar`s r�format_file_sizerc�s���y���'�'r7c��d}tj|�D];\}}}|D]0}tjj||�}|t	|�z
}�2�=|S)Ng)rrUrrGra)r�sizerT�_dirsrZ�filename�	file_paths       r�directory_sizeri�sT���D� �g�g�d�m���e�U��H������T�8�4�I��I�i�(�(�D��,��Kr7c�*�tt|��Sr>)rrir`s r�format_directory_sizerk�s���~�d�+�,�,r7)r�str�return�bool)rrlr)rrmzGenerator[BinaryIO, None, None])rrlrYrlrmz	list[str])rrlrmzint | float)rrlrmrl)!�
__future__rrVr�os.pathr?r�collections.abcr�
contextlibr�tempfiler�typingrrr	�pip._internal.utils.compatr
�pip._internal.utils.miscr�pip._internal.utils.retryrrr,�replacer6r4r\rarcrirkr$r7r�<module>rys���"��	��
�
�%�%�'�&�&�3�0�+��6�&��&�0/�%���
.�r�z�z�
:��
(�$I�8�!�(��-r7

Youez - 2016 - github.com/yon3zu
LinuXploit