#NEWLINE# def get_objects( sc , container , object_list , pool_size ) : #NEWLINE# #INDENT# found = 0 #NEWLINE# try : #NEWLINE# #INDENT# ( headers , objs ) = sc . get_container ( container , full_listing = True ) #NEWLINE# for obj in objs : #NEWLINE# #INDENT# if ( obj [ 'name' ] in object_list ) : #NEWLINE# #INDENT# found = ( found + 1 ) #NEWLINE# try : #NEWLINE# #INDENT# headers = sc . head_object ( container , obj [ 'name' ] ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# headers = [ ] #NEWLINE# #UNINDENT# if ( 'x-static-large-object' in headers ) : #NEWLINE# #INDENT# get_ms_object ( sc , container , obj [ 'name' ] , pool_size ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# get_object ( sc , pool_size , obj [ 'name' ] ) #NEWLINE# #UNINDENT# set_time ( headers , obj [ 'name' ] ) #NEWLINE# #UNINDENT# #UNINDENT# if ( not found ) : #NEWLINE# #INDENT# print ( 'No matching files found' ) #NEWLINE# #UNINDENT# #UNINDENT# except swiftclient . ClientException : #NEWLINE# #INDENT# print ( ( "Error: cannot access Swift container '%s'!" % container ) ) #NEWLINE# #UNINDENT# sc . close ( )