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
Get the path directory of the given path