%PDF- %PDF-
Direktori : /lib/python3/dist-packages/duplicity/__pycache__/ |
Current File : //lib/python3/dist-packages/duplicity/__pycache__/dup_temp.cpython-312.pyc |
� �2e� � � � d Z ddlZddlZddlZddlmZ ddlmZ ddlmZ ddlmZ ddlm Z ddlm Z d � Z G d � de j � Z dd�Zd � Z G d� de j � Z G d� de� Z G d� de� Z G d� de� Zy)zManage temporary files� N)�config)�file_naming)�gpg)�log)�path)�tempdirc �\ � t j � j � } t | � S )z Return a new TempPath )r �default�mktemp�TempPath)�filenames �4/usr/lib/python3/dist-packages/duplicity/dup_temp.py�new_temppathr $ s$ � � ��� �'�'�)�H��H��� c � � e Zd ZdZd� Zd� Zy)r z. Path object used as a temporary file c � � t j j | � t j � j | j � y�z# Forget and delete N)r �Path�deleter r �forget�name��selfs r r zTempPath.delete1 s/ � � � � ��������� � ����+r c � � t t j j | |� � }|j | j � |S )�F Returns a fileobj. When that is closed, delete file )� FileobjHookedr r �open�addhookr �r �mode�fhs r �open_with_deletezTempPath.open_with_delete8 s2 � � �4�9�9�>�>�$��5� 6�� � � �4�;�;��� r N)�__name__� __module__�__qualname__�__doc__r r"