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)ÚBaseSyncz	size-onlyÚ
store_truezgMakes the size of each key the only criteria used to decide whether to sync from source to destination.)ÚnameÚactionÚ	help_textc                   @   s   e Zd ZeZdd„ ZdS )ÚSizeOnlySyncc                 C   s0   |   ||¡}| }|rt d|j|j| ¡ |S )Nz#syncing: %s -> %s, size_changed: %s)Úcompare_sizeÚLOGÚdebugÚsrcÚdest)ÚselfÚsrc_fileÚ	dest_fileÚ	same_sizeÚshould_sync© r   úP/usr/lib/python3/dist-packages/awscli/customizations/s3/syncstrategy/sizeonly.pyÚdetermine_should_sync   s   ÿz"SizeOnlySync.determine_should_syncN)Ú__name__Ú
__module__Ú__qualname__Ú	SIZE_ONLYÚARGUMENTr   r   r   r   r   r      s    r   )ÚloggingÚ*awscli.customizations.s3.syncstrategy.baser   Ú	getLoggerr   r	   r   r   r   r   r   r   Ú<module>   s   
þ