lib/utils/downloadTemplateFromRepo.js
function getPathDirectory(length, parts) {
  if (!parts) {
    return '';
  }
  return parts
    .slice(length)
    .filter(part => part !== '')
    .join(path.sep);
}
function getPathDirectory(length, parts) {
  if (!parts) {
    return '';
  }
  return parts
    .slice(length)
    .filter(part => part !== '')
    .join(path.sep);
}
function getPathDirectory ( length , parts ) { if ( ! parts ) { return '' ; } return parts . slice ( length ) . filter ( part => part !== '' ) . join ( path . sep ) ; }
Returns directory path
@param {Number} length
@param {Array} parts
@returns {String} directory path
Returns directory path