code: function formDestPath (folderName, fileName) {
        var delimiter = '';
        if (folderName[folderName.length - 1] !== '/'){
          delimiter = '/';
        }
        return folderName + delimiter + path.basename(fileName);
      }
docs: check if dest is ending with a '/' so that proper folder name could be created