File: //usr/lib/python3/dist-packages/duplicity/backends/__pycache__/megabackend.cpython-310.pyc
o
�~�_� � @ s� d dl mZ d dlmZ e�� d dlmZ d dlmZ d dl Zd dl
Z
d dlZG dd� dejj
�Zej�de� ejj�dg� dS ) � )�print_function)�standard_library)�util)�BackendExceptionNc @ sr e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
d� Zdd
� Z dd� Z
dd� Zddd�Zdd� Z
dd� Zdd� ZdS )�MegaBackendz,Connect to remote store using Mega.co.nz APIc C s� t jj�| |� | �d� | �d� | �d� | �d� | �d� |j| _|jd u r3t� d�d | _
nd| _
|j| _| �
� | _d | _| jd
|jdd � | _| �|jdd � �d
�� d S )N�megals� megamkdir�megaget�megaput�megarm�HOMEz/.megarcFz/Root�/� )� duplicity�backend�Backend�__init__�_check_binary_exists�hostname� _hostname�password�os�getenv�_megarc�username� _username�get_password� _password�_root�path�_folder�_makedir_recursive�split)�self�
parsed_url� r% �@/usr/lib/python3/dist-packages/duplicity/backends/megabackend.pyr % s
zMegaBackend.__init__c
C s<