diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2023-07-31 21:41:25 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2023-07-31 21:41:25 +0200 |
commit | f1d4f7c7e46cc3a5d8c227c51a6a5ecbab8867fb (patch) | |
tree | 06b25ac139bafc20a0e125d7cf729a5ee456252d | |
parent | 27916deb9508668f570a65ce03504cf507dcbcf7 (diff) | |
download | nextcloud-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.php | 2 |
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) { |