Submit
Path:
~
/
/
lib
/
python2.7
/
site-packages
/
awscli
/
customizations
/
s3
/
File Content:
filegenerator.pyc
� =��Xc @ s d d l Z d d l Z d d l Z d d l m Z d d l m Z d d l m Z d d l m Z m Z d d l m Z m Z m Z m Z d d l m Z d d l m Z e Z d � Z d � Z d e f d � � YZ d e f d � � YZ d e f d � � YZ d S( i����N( t parse( t tzlocal( t ClientError( t find_bucket_keyt get_file_stat( t BucketListert create_warningt find_dest_path_comp_keyt EPOCH_TIME( t six( t queuec C sb t j | � j } t j | � r% t St j | � r8 t St j | � rK t St j | � r^ t St S( s� This function checks to see if a special file. It checks if the file is a character special device, block special device, FIFO, or socket. ( t ost statt st_modet S_ISCHRt Truet S_ISBLKt S_ISFIFOt S_ISSOCKt False( t patht mode( ( sF /tmp/pip-build-uEGWVr/awscli/awscli/customizations/s3/filegenerator.pyt is_special_file s c C s| t j j | � rA y t j | � Wqx t t f k r= t SXn7 y t | d � � } Wd QXWn t t f k rw t SXt S( s� This function checks to see if a file or a directory can be read. This is tested by performing an operation that requires read access on the file or the directory. t rN( R R t isdirt listdirt OSErrort IOErrorR t _openR ( R t fd( ( sF /tmp/pip-build-uEGWVr/awscli/awscli/customizations/s3/filegenerator.pyt is_readable4 s t FileDecodingErrorc B s'