public function confirmDeleteFile(string $authorId, string $cabin = '')
{
$this->loadAuthorInfo((int) $authorId);
$this->files->ensureDirExists($this->root_dir, $cabin);
$dir = $this->determinePath($cabin);
if (!\in_array($cabin, $this->getCabinNamespaces())) {
\Airship\redirect($this->airship_cabin_prefix);
$this->files->ensureDirExists($this->root_dir . '/photos', $cabin);
}
if (empty($_GET['file'])) {
return $this->commonConfirmDeleteDir($dir, $cabin);
}
$this->storeLensVar('title', \__('Confirm file delete'));
return $this->commonConfirmDeleteFile($_GET['file'], $dir, $cabin);
}