Jarves\Controller\Admin\FileController::getFile PHP Method

getFile() protected method

Returns file information as array.
protected getFile ( string | integer $path ) : array | null
$path string | integer
return array | null
    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;
    }