bool
public function remove(string $file) { if ($this->isEnabled() && !$this->readOnly) { $file = Preg::replace('{[^' . $this->allowlist . ']}i', '-', $file); if (file_exists($this->root . $file)) { return $this->filesystem ->unlink($this->root . $file); } } return false; }