lib/file-client/index.js
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);
}
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);
}
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 ) ; }
Listing All Files
Listing All Files