o
    .&ßa–  ã                   @   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ÚactionÚ	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 )NÚdownloadr   )Úlast_updateÚoperation_nameÚtotal_secondsÚsuperr   Úcompare_time)ÚselfÚsrc_fileÚ	dest_fileÚsrc_timeÚ	dest_timeÚdeltaÚcmd©Ú	__class__© úW/usr/lib/python3/dist-packages/awscli/customizations/s3/syncstrategy/exacttimestamps.pyr   "   s   ÿz ExactTimestampsSync.compare_time)Ú__name__Ú
__module__Ú__qualname__ÚEXACT_TIMESTAMPSÚARGUMENTr   Ú__classcell__r   r   r   r   r      s    r   )ÚloggingÚ*awscli.customizations.s3.syncstrategy.baser   Ú	getLoggerr   ÚLOGr   r   r   r   r   r   Ú<module>   s   
þ	