Sindbad~EG File Manager
�
&Μgj � �8 � d Z ddlZddlZddlmZ G d� d� Zy)z$Tests common to tarfile and zipfile.� N)� os_helperc �" � e Zd Zd� Zdd�Zd� Zd� Zd� Zd� Zd� Z d� Z
d � Zd
� Ze
j d� � Ze
j d� � Ze
j d
� � Ze
j d� � Ze
j d� � Ze
j d� � Zy)�OverwriteTestsc � � t j | j � | j t j
| j � y �N)�os�makedirs�testdir�
addCleanupr �rmtree)�selfs �0/usr/local/lib/python3.12/test/archiver_tests.py�setUpzOverwriteTests.setUp
s* � �
���D�L�L�!���� �(�(�$�,�,�7� c �h � t |d� 5 }|j |� d d d � y # 1 sw Y y xY w)N�wb)�open�write)r
�path�content�fs r �create_filezOverwriteTests.create_file s&