lib/utils.js
function FolderPath(value) {
  if (!(this instanceof FolderPath)) {
    return new FolderPath(value);
  }
  if (Array.isArray(value)) {
    this.value = value;
  } else if (typeof value === 'string') {
    if (value.match('^https?:\/\/')) {
      this.value = parseName(value);
    } else {
      this.value = value.split('/').filter(Boolean);
    }
  } else {
    this.value = [];
  }
}
function FolderPath(value) {
  if (!(this instanceof FolderPath)) {
    return new FolderPath(value);
  }
  if (Array.isArray(value)) {
    this.value = value;
  } else if (typeof value === 'string') {
    if (value.match('^https?:\/\/')) {
      this.value = parseName(value);
    } else {
      this.value = value.split('/').filter(Boolean);
    }
  } else {
    this.value = [];
  }
}
function FolderPath ( value ) { if ( ! ( this instanceof FolderPath ) ) { return new FolderPath ( value ) ; } if ( Array . isArray ( value ) ) { this . value = value ; } else if ( typeof value === 'string' ) { if ( value . match ( '^https?:\/\/' ) ) { this . value = parseName ( value ) ; } else { this . value = value . split ( '/' ) . filter ( Boolean ) ; } } else { this . value = [ ] ; } }
Path for folder plugin
Path for folder plugin