You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was struggling to use a mixture of gaufrette with liip imagine and \Superbalist\Flysystem\GoogleStorage\GoogleStorageAdapter.
The missing key to use \Gaufrette\Adapter\Flysystem was that Gaufrette\Stream\InMemoryBuffer uses $this->filesystem->isDirectory($this->key) in stat(), which fails in \Gaufrette\Adapter\Flysystem due to UnsupportedAdapterMethodException('isDirectory is not supported by this adapter.') in isDirectory().
The way i solved this is by extending the \Gaufrette\Adapter\Flysystem and overwriting
public function isDirectory($key)
{
return $this->adapter->has($key.'/');
}
This is the same method as in \Gaufrette\Adapter\GoogleCloudStorage
Hope this helps somebody. Does it make sense to create a pull request?
The text was updated successfully, but these errors were encountered:
I was struggling to use a mixture of gaufrette with liip imagine and
\Superbalist\Flysystem\GoogleStorage\GoogleStorageAdapter
.The missing key to use
\Gaufrette\Adapter\Flysystem
was thatGaufrette\Stream\InMemoryBuffer
uses$this->filesystem->isDirectory($this->key)
instat()
, which fails in\Gaufrette\Adapter\Flysystem
due toUnsupportedAdapterMethodException('isDirectory is not supported by this adapter.')
inisDirectory()
.The way i solved this is by extending the \Gaufrette\Adapter\Flysystem and overwriting
This is the same method as in
\Gaufrette\Adapter\GoogleCloudStorage
Hope this helps somebody. Does it make sense to create a pull request?
The text was updated successfully, but these errors were encountered: