public function S3Adapter::getMetadata in Flysystem - S3 2.0.x
Same name and namespace in other branches
- 8 src/Flysystem/Adapter/S3Adapter.php \Drupal\flysystem_s3\Flysystem\Adapter\S3Adapter::getMetadata()
File
- src/
Flysystem/ Adapter/ S3Adapter.php, line 35
Class
- S3Adapter
- Overrides methods so it works with Drupal.
Namespace
Drupal\flysystem_s3\Flysystem\AdapterCode
public function getMetadata($path) {
$metadata = parent::getMetadata($path);
if ($metadata === FALSE) {
return [
'type' => 'dir',
'path' => $path,
'timestamp' => \Drupal::time()
->getRequestTime(),
'visibility' => AdapterInterface::VISIBILITY_PUBLIC,
];
}
return $metadata;
}