/** * Constructor... * * @param \r8\FileSys\File $file The file being opened */ public function __construct(\r8\FileSys\File $file) { $file->requirePath(); if (!$file->isReadable()) { throw new \r8\Exception\FileSystem\Permissions($file->getPath(), "File is not readable"); } parent::__construct($file->getPath()); }
/** * Returns whether this file is readable * * @return Boolean */ public function isReadable() { return $this->file->isReadable(); }