'Retrieve data from data directory. Returns ``None`` if there
are no data stored.
.. versionadded:: 1.8
:param name: name of datastore'

def stored_data(self, name):

    metadata_path = self.datafile(u'.{0}.alfred-workflow'.format(name))
    if (not os.path.exists(metadata_path)):
        self.logger.debug(u'No    data    stored    for    `{0}`'.format(name))
        return None
    with open(metadata_path, u'rb') as file_obj:
        serializer_name = file_obj.read().strip()
    serializer = manager.serializer(serializer_name)
    if (serializer is None):
        raise ValueError(u'Unknown    serializer    `{0}`.    Register    a    corresponding    serializer    with    `manager.register()`    to    load    this    data.'.format(serializer_name))
    self.logger.debug(u'Data    `{0}`    stored    in    `{1}`    format'.format(name, serializer_name))
    filename = u'{0}.{1}'.format(name, serializer_name)
    data_path = self.datafile(filename)
    if (not os.path.exists(data_path)):
        self.logger.debug(u'No    data    stored    for    `{0}`'.format(name))
        if os.path.exists(metadata_path):
            os.unlink(metadata_path)
        return None
    with open(data_path, u'rb') as file_obj:
        data = serializer.load(file_obj)
    self.logger.debug(u'Stored    data    loaded    from    :    {0}'.format(data_path))
    return data
