https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/awscli/customizations/s3/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/awscli/customizations/s3/__pycache__/fileinfo.cpython-310.pyc
o

.&�a��@sGdd�de�ZdS)c@s<eZdZdZ					ddd�Zdd�Zdd	�Zd
d�ZdS)
�FileInfoa�This class contains important details related to performing a task.

    It can perform operations such as ``upload``, ``download``, ``copy``,
    ``delete``, ``move``.  Similarly to ``TaskInfo`` objects attributes
    like ``session`` need to be set in order to perform operations.

    :param dest: the destination path
    :type dest: string
    :param compare_key: the name of the file relative to the specified
        directory/prefix.  This variable is used when performing synching
        or if the destination file is adopting the source file's name.
    :type compare_key: string
    :param size: The size of the file in bytes.
    :type size: integer
    :param last_update: the local time of last modification.
    :type last_update: datetime object
    :param dest_type: if the destination is s3 or local.
    :param dest_type: string
    :param parameters: a dictionary of important values this is assigned in
        the ``BasicTask`` object.
    :param associated_response_data: The response data used by
        the ``FileGenerator`` to create this task. It is either an dictionary
        from the list of a ListObjects or the response from a HeadObject. It
        will only be filled if the task was generated from an S3 bucket.
    NFcCs`||_||_||_|	|_||_||_||_||_||_i|_	|
dur%|
|_	||_
||_|
|_dS)N)
�src�src_type�operation_name�client�dest�	dest_type�compare_key�size�last_update�
parameters�
source_client�	is_stream�associated_response_data)�selfrrrr	r
rrrrrrr
r�r�C/usr/lib/python3/dist-packages/awscli/customizations/s3/fileinfo.py�__init__)s
zFileInfo.__init__cCs6|�|j�r|jdvr
dS|jdkr|jdkrdSdS)aDetermines if a file info object is glacier compatible

        Operations will fail if the S3 object has a storage class of GLACIER
        and it involves copying from S3 to S3, downloading from S3, or moving
        where S3 is the source (the delete will actually succeed, but we do
        not want fail to transfer the file and then successfully delete it).

        :returns: True if the FileInfo's operation will not fail because the
            operation is on a glacier object. False if it will fail.
        )�copy�downloadF�move�s3T)�_is_glacier_objectrrr)rrrr�is_glacier_compatible?s


zFileInfo.is_glacier_compatiblecCs,ddg}|r|�d�|vr|�|�sdSdS)N�GLACIER�DEEP_ARCHIVE�StorageClassTF)�get�_is_restored)r�
response_data�glacier_storage_classesrrrrRs�zFileInfo._is_glacier_objectcCsd|�dd�vS)Nzongoing-request="false"�Restore�)r)rrrrrrZszFileInfo._is_restored)NNNNNNNNNNFN)�__name__�
__module__�__qualname__�__doc__rrrrrrrrrs
�rN)�objectrrrrr�<module>s

https://t.me/RX1948 - 2025