File: //usr/lib/python3/dist-packages/duplicity/backends/__pycache__/megav3backend.cpython-310.pyc
o
��Hal( � @ s� d dl mZ d dlZd dlZd dlZd dlZd dlmZ d dlm Z d dl
mZ e�� G dd� dej
j�Zej
�de� ej
j�dg� dS ) � )�print_functionN)�util)�BackendException)�standard_libraryc @ s� e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
d� Zdd
� Z dd� Z
dd� Zdd� Zdd� Z
d dd�Zdd� Zdd� Zdd� ZdS )!�
Megav3Backendax Backend for MEGA.nz cloud storage, only one that works for accounts created since Nov. 2018
See https://github.com/megous/megatools/issues/411 for more details
This MEGA backend resorts to official tools (MEGAcmd) as available at https://mega.nz/cmd
MEGAcmd works through a single binary called "mega-cmd", which keeps state (for example,
persisting a session). Multiple "mega-*" shell wrappers (ie. "mega-ls") exist as the user
interface to "mega-cmd" and MEGA API
The full MEGAcmd User Guide can be found in the software's GitHub page below :
https://github.com/meganz/MEGAcmd/blob/master/UserGuide.mdc
C s� t jj�| |� | �d� | �d� | �d� | �d� | �d� | �d� | �d� | �d� | �d � | �d
� | �d� |j| _|jd u r�t� d�d
| _
zt| j
d�}W n tyl } zt
d| j
f ��d }~ww i }|D ]}|�d�d d d� \}}t|�� �||�� <