/**
* @param string $prefix
*/
public function __construct(FilesystemInterface
$filesystem,
$prefix) { if (empty($prefix)) { throw new InvalidArgumentException('The prefix must not be empty.'
);
} $this->filesystem =
$filesystem;
$this->prefix =
$this->
normalizePrefix($prefix);
} /**
* {@inheritdoc}
*/
public function has($path) { $this->
checkPath($path);
return $this->filesystem->
has($this->prefix .
$path);
}