HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/awscli/customizations/s3/__pycache__/fileinfobuilder.cpython-36.pyc
3

�T_{�@s ddlmZGdd�de�ZdS)�)�FileInfoc@s*eZdZdZd
dd�Zdd�Zdd	�ZdS)�FileInfoBuilderz�
    This class takes a ``FileBase`` object's attributes and generates
    a ``FileInfo`` object so that the operation can be performed.
    NFcCs*||_||_|dk	r||_||_||_dS)N)�_client�_source_client�_parameters�
_is_stream)�self�client�
source_client�
parameters�	is_stream�r
�%/usr/lib/python3.6/fileinfobuilder.py�__init__szFileInfoBuilder.__init__ccs"x|D]}|j|�}|VqWdS)N)�_inject_info)r�files�	file_base�	file_infor
r
r�calls

zFileInfoBuilder.callcCs�i}|j|d<|j|d<|j|d<|j|d<|j|d<|j|d<|j|d<|j|d<|j|d	<|j	|d
<|j
|d<|jdkr�|jjd�r�|j|d
<|j
|d<n|j
|d
<|j|d<tf|�S)N�src�dest�compare_key�size�last_update�src_type�	dest_type�operation_namerrZassociated_response_data�deleter	r
)rrrrrrrrrrZ
response_data�getrrr)rrZfile_info_attrr
r
rr#s&














zFileInfoBuilder._inject_info)NNF)�__name__�
__module__�__qualname__�__doc__rrrr
r
r
rrs

rN)Z!awscli.customizations.s3.fileinfor�objectrr
r
r
r�<module>
s