if (write) {
        cb(null, false);
      } else {
        pathParts = path.split('/');//e.g. ['public', 'foo', 'bar', '']
        cb(null, (pathParts[1] === 'public') && (path.substr(-1) !== '/'));