o
    Ü!d–  ã                   @   s>   d dl Z d dlmZ e  e¡ZddddœZG dd„ deƒZdS )	é    N)ÚSizeAndLastModifiedSynczexact-timestampsÚ
store_truezÑWhen syncing from S3 to local, same-sized items will be ignored only when the timestamps match exactly. The default behavior is to ignore same-sized items unless the local version is newer than the S3 version.)ÚnameÚactionZ	help_textc                       s    e Zd ZeZ‡ fdd„Z‡  ZS )ÚExactTimestampsSyncc                    sB   |j }|j }|| }|j}|dkr|  |¡dkS tt| ƒ ||¡S )NZdownloadr   )Zlast_updateZoperation_nameÚtotal_secondsÚsuperr   Úcompare_time)ÚselfZsrc_fileZ	dest_fileZsrc_timeZ	dest_timeÚdeltaÚcmd©Ú	__class__© úYusr/lib/python3.10/site-packages/awscli/customizations/s3/syncstrategy/exacttimestamps.pyr	   "   s   ÿz ExactTimestampsSync.compare_time)Ú__name__Ú
__module__Ú__qualname__ÚEXACT_TIMESTAMPSZARGUMENTr	   Ú__classcell__r   r   r   r   r      s    r   )ÚloggingZ*awscli.customizations.s3.syncstrategy.baser   Ú	getLoggerr   ZLOGr   r   r   r   r   r   Ú<module>   s   
þ	