code: function list() {
    var donePromise = mediator.promise(fileSubscribers.getTopic(CONSTANTS.TOPICS.LIST, CONSTANTS.DONE_PREFIX));
    var errorPromise = mediator.promise(fileSubscribers.getTopic(CONSTANTS.TOPICS.LIST, CONSTANTS.ERROR_PREFIX));
    mediator.publish(fileSubscribers.getTopic(CONSTANTS.TOPICS.LIST));
  
    return getTopicPromises(donePromise, errorPromise);
  }
docs: Listing All Files