aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2023-07-31 21:41:25 +0200
committerDaniel Kesselberg <mail@danielkesselberg.de>2023-07-31 21:41:25 +0200
commitf1d4f7c7e46cc3a5d8c227c51a6a5ecbab8867fb (patch)
tree06b25ac139bafc20a0e125d7cf729a5ee456252d
parent27916deb9508668f570a65ce03504cf507dcbcf7 (diff)
downloadnextcloud-server-f1d4f7c7e46cc3a5d8c227c51a6a5ecbab8867fb.tar.gz
nextcloud-server-f1d4f7c7e46cc3a5d8c227c51a6a5ecbab8867fb.zip
fix: copy-and-delete fallback should use unlink
because rmdir does not work for files. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
-rw-r--r--lib/private/Files/Storage/Local.php2
1 files changed, 1 insertions, 1 deletions
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) {