| Server IP : 173.209.174.21 / Your IP : 216.73.216.79 Web Server : Apache/2.4.58 (Ubuntu) System : Linux wcfs-server 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64 User : nodor ( 1000) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/twisted/python/test/__pycache__/ |
Upload File : |
�
oj? � �v � d Z ddlmZ ddlZddlZddlmZ ddlmZ ddl m
Z
mZ ddlm
Z
dd�Z G d � d
e
� Zy)z0
Test cases covering L{twisted.python.zippath}.
� )�annotationsN)�Union)�_coerceToFilesystemEncoding)�
ZipArchive�ZipPath)�AbstractFilePathTestsc � � t d| � }t d|� }t j |d� 5 }t j |� D ]n \ }}}|D ]c }t j
j
||� } t j
j
||� t | � dz d }
|j | |
� �e �p ddd� y# 1 sw Y yxY w)zI
Create a zipfile on zfname, containing the contents of dirname'
� �w� N) r �zipfile�ZipFile�os�walk�path�join�len�write)�dirname�zfname�coercedDirname�
coercedZfname�zf�root�ignored�files�fname�fspath�arcpaths �B/usr/lib/python3/dist-packages/twisted/python/test/test_zippath.py�zipitr! s� � � 1��W�=�N�/��F�;�M� ����� ,� *��
�W�W�^�
$� *�
�����
*�������d�E�2���'�'�,�,�t�U�3�C��L�1�4D�4F�G�������)�
*� *� *� *� *�s �BC � C c �N � e Zd ZU dZded<