Example #1
0
 /**
  * Read the file or directory
  * @param boolean $recursive When reading a directory: true to read subdirectories, false to read only the direct children
  * @return string|array if the file is not a directory, the contents of the file will be returned
  *          in a string, else the files in the directory will be returned in an array
  * @throws zibo\library\filesystem\exception\FileSystemException when the file or directory could not be read
  */
 public function read($recursive = false)
 {
     return $this->fs->read($this, $recursive);
 }