public function path($pattern, $mode = 'r')
{
switch ($mode) {
case 'r':
case 'read':
$this->readPaths[] = $this->toRegex($pattern);
break;
case 'w':
case 'write':
$this->writePaths[] = $this->toRegex($pattern);
break;
case '-':
case 'deny':
$this->notPaths[] = $this->toRegex($pattern);
break;
}
return $this;
}