/** * Returns true if the files is readable. * * @return boolean true if the files is readable. */ public function canRead() { if (!parent::canRead()) { return false; } return $this->getEntry() ? $this->getEntry()->canRead : true; }
/** * Returns true if the files is readable. * * @return boolean true if the files is readable. */ public function canRead() { if (!parent::canRead()) { return false; } // Check parent if (!$this->exists()) { return $this->getParentFile()->canRead(); } return is_readable($this->internalPath); }