From 9761eb9cdfc78451b8c808ee405a0d97180d4ce3 Mon Sep 17 00:00:00 2001 From: Tamino Bauknecht Date: Tue, 7 Nov 2023 21:56:34 +0100 Subject: [PATCH] feature(storage): Allow deletion of symlinks with remove method in Common storage --- lib/private/Files/Storage/Common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Files/Storage/Common.php b/lib/private/Files/Storage/Common.php index 3c7818d96fd58..c0af0d4902fc2 100644 --- a/lib/private/Files/Storage/Common.php +++ b/lib/private/Files/Storage/Common.php @@ -106,7 +106,7 @@ public function __construct($parameters) { protected function remove($path) { if ($this->is_dir($path)) { return $this->rmdir($path); - } elseif ($this->is_file($path)) { + } elseif ($this->is_file($path) || $this->is_link($path)) { return $this->unlink($path); } else { return false;