Open
Description
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?
Metadata
Metadata
Assignees
Labels
No labels