kirby/vendor/getkirby/toolkit/lib/folder.php
/**
   * Returns a subfolder object by path
   * 
   * @return mixed Directory
   */
Returns a subfolder object by path

@return mixed Directory
Returns a subfolder object by path @return mixed Directory
public function child($path) {
    $root = $this->root . DS . str_replace('/', DS, $path);
    if(!is_dir($root)) return false;
    return new static($root);
  }
public function child ( $ path ) { $ root = $ this -> root . DS . str_replace ( '/' , DS , $ path ) ; if ( ! is_dir ( $ root ) ) return false ; return new static ( $ root ) ; }
Returns a subfolder object by path
Returns a subfolder object by path