public function child($path) { $root = $this->root . DS . str_replace('/', DS, $path); if (!is_dir($root)) { return false; } return new static($root); }