processPath(path) {
    let that = this;
    path = path.replace(/\/$/, '');

    return vfs.stat(path).then(function(stat) {
      if (stat.isDirectory()) {
        return that.processDirectory(path);
      } else {
        return that.processFile(path);
      }
    });
  }
Processes directory or file.

@returns {Promise}