#NEWLINE# def get_output_metadata( self , path , filename ) : #NEWLINE# #INDENT# '\n        Describe a file by its metadata.\n\n        :return: dict\n        ' #NEWLINE# checksums = get_checksums ( path , [ 'md5' ] ) #NEWLINE# metadata = { #NEWLINE# #INDENT# 'filename' : filename , #NEWLINE# 'filesize' : os . path . getsize ( path ) , #NEWLINE# 'checksum' : checksums [ 'md5sum' ] , #NEWLINE# 'checksum_type' : 'md5' , #NEWLINE# #UNINDENT# } #NEWLINE# if filename . metadata_only : #NEWLINE# #INDENT# metadata [ 'metadata_only' ] = True #NEWLINE# #UNINDENT# return metadata