From: Daniel Kesselberg Date: Mon, 31 Jul 2023 19:41:25 +0000 (+0200) Subject: fix: copy-and-delete fallback should use unlink X-Git-Tag: v28.0.0beta1~546^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F39644%2Fhead;p=nextcloud-server.git fix: copy-and-delete fallback should use unlink because rmdir does not work for files. Signed-off-by: Daniel Kesselberg --- diff --git a/lib/private/Files/Storage/Local.php b/lib/private/Files/Storage/Local.php index fb62a53d894..02708ed4f7d 100644 --- a/lib/private/Files/Storage/Local.php +++ b/lib/private/Files/Storage/Local.php @@ -368,7 +368,7 @@ class Local extends \OC\Files\Storage\Common { return true; } - return $this->copy($source, $target) && $this->rmdir($source); + return $this->copy($source, $target) && $this->unlink($source); } public function copy($source, $target) {