HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/pip/_vendor/pep517/__pycache__/dirtools.cpython-310.pyc
o

!��hi�@sZddlZddlZddlZddlZddlZddlZddlZejdd��Zdd�Z	dd�Z
dS)�Nc	cs.�t��}z|VWt�|�dSt�|�w)z2Create a temporary directory in a context manager.N)�tempfile�mkdtemp�shutil�rmtree)�td�r�=/usr/lib/python3/dist-packages/pip/_vendor/pep517/dirtools.py�tempdir
s
�r	c
OsHz	tj|i|��WSty#}z|jtjkr�WYd}~dSd}~ww)zWLike `mkdir`, but does not raise an exception if the
    directory already exists.
    N)�os�mkdir�OSError�errno�EEXIST)�args�kwargs�excrrr�mkdir_ps���rcCs�t��}t�|d�}t�|�D]9\}}}|D]}tj�||�}tj�||�}|�	|dd�q|D]}tj�||�}tj�||�}|�
||�q1q|S)z0Construct an in-memory zip file for a directory.�w�/�)�io�BytesIO�zipfile�ZipFiler
�walk�path�join�relpath�writestr�write)�root�buffer�zip_file�dirs�filesr�fs_path�rel_pathrrr�dir_to_zipfiles�r')r
r�
contextlibrrr
r�contextmanagerr	rr'rrrr�<module>s