public function getAbsolutePath($key = '') { if ($this->supportsAbsolutePaths()) { return $this->driver->getAbsolutePath($key); } throw new StorageException(StorageException::DRIVER_DOES_NOT_SUPPORT_ABSOLUTE_PATHS, [get_class($this->driver)]); }
/** * Get absolute file path. * If storage driver does not support absolute paths (cloud storage) returns file key * * @return string */ public function getAbsolutePath() { if ($this->storage->supportsAbsolutePaths()) { return $this->storage->getAbsolutePath($this->key); } return $this->getKey(); }