#NEWLINE# def _get_file_info( self , sha , preferred_formats = None ) : #NEWLINE# #INDENT# if ( preferred_formats is None ) : #NEWLINE# #INDENT# preferred_formats = defaults [ 'catalog_preferred_formats' ] #NEWLINE# #UNINDENT# for format in preferred_formats : #NEWLINE# #INDENT# subpath = self . _ph . path_for_file_with_sha ( sha , format = format ) #NEWLINE# meta = self . _storage . get_meta ( subpath ) #NEWLINE# if ( meta is not None ) : #NEWLINE# #INDENT# return { #NEWLINE# #INDENT# 'sha' : sha , #NEWLINE# 'size' : sha [ 'size' ] , #NEWLINE# 'format' : format , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# #UNINDENT# return None