#NEWLINE# def upload_files( self , abspaths , relpaths , remote_objects ) : #NEWLINE# #INDENT# '\n        Determines files to be uploaded and call ``upload_file`` on each.\n        ' #NEWLINE# for relpath in relpaths : #NEWLINE# #INDENT# abspath = [ p for p in abspaths if ( p [ len ( self . file_root ) : ] == relpath ) ] [ 0 ] #NEWLINE# cloud_datetime = ( remote_objects [ relpath ] if ( relpath in remote_objects ) else None ) #NEWLINE# local_datetime = datetime . datetime . utcfromtimestamp ( os . stat ( abspath ) . st_mtime ) #NEWLINE# if ( cloud_datetime and ( local_datetime < cloud_datetime ) ) : #NEWLINE# #INDENT# self . skip_count += 1 #NEWLINE# if ( not self . quiet ) : #NEWLINE# #INDENT# print ( 'Skipped {0}: not modified.' . format ( relpath ) ) #NEWLINE# #UNINDENT# continue #NEWLINE# #UNINDENT# if ( relpath in remote_objects ) : #NEWLINE# #INDENT# self . update_count += 1 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . create_count += 1 #NEWLINE# #UNINDENT# self . upload_file ( abspath , relpath )