protected function getFile($path)
{
$file = $this->webFilesystem->getFile($path);
$file = $file->toArray();
$aclRequest = ACLRequest::create('jarves/file', $file)->onlyListingMode();
if (!$file || !$this->acl->check($aclRequest)) {
return null;
}
$file['writeAccess'] = $this->acl->check($aclRequest->onlyUpdateMode());
$this->appendImageInformation($file);
return $file;
}