/** * If the etag returned by the parent is empty the method returns a SHA-384 of the file. * * @return string */ protected function get_etag() { return parent::get_etag() ?: self::hash_file($this->file->getPathname()); }