'use strict';

module.exports = function(directory, seasons) {
  return new Promise((resolve, reject) => {


  });
};

@@ -12,100 +12,805 @@
 ';%0A%0A
-module.exports = function(directory, seasons) %7B%0A  return new Promise((resolve, reject) =%3E %7B%0A
+// Load requirements%0Aconst path = require('path'),%0A      assign = require('deep-assign');%0A%0A// Variables%0Alet queueCache = %5B%5D;%0A%0A// Send back the function%0Amodule.exports = function(task, options) %7B%0A  return new Promise((resolve, reject) =%3E %7B%0A%0A    // Merge task specific options%0A    options = assign(options, task.options);%0A%0A    // Sort directory%0A    let directory = path.absolute(path.join(options.base, task.directory));%0A%0A    // Get the tasks to be processed and add them to listing%0A    this.listing(directory, task.seasons).then((files) =%3E %7B%0A      files.listing.forEach(function(file, i) %7B%0A%0A        // Skip if already in queue%0A        if ( queueCache.includes(file) ) %7B%0A          return false;%0A        %7D%0A%0A        console.log(file);%0A%0A      %7D);%0A    %7D).catch((err) =%3E %7B%0A      console.log(err);%0A    %7D);
 %0A%0A  

Add basic addition and listing to queue add