parameters: (self, file_name)
docstring: gets the name of the file reference
docstring_summary: gets the name of the file reference
docstring_tokens: gets the name of the file reference
function: def get_type_by_file_name(self, file_name):
          '''gets the name of the file reference'''
          xml = self.get_snapshot_xml()
  
          node = xml.get_node('snapshot/file[@name="%s"]' % file_name)
          if node is not None:
              return Xml.get_attribute(node, "type")
          else:
              return ''
function_tokens: def get_type_by_file_name ( self , file_name ) : xml = self . get_snapshot_xml ( ) node = xml . get_node ( 'snapshot/file[@name="%s"]' % file_name ) if node is not None : return Xml . get_attribute ( node , "type" ) else : return ''