]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix: copy-and-delete fallback should use unlink 39644/head
authorDaniel Kesselberg <mail@danielkesselberg.de>
Mon, 31 Jul 2023 19:41:25 +0000 (21:41 +0200)
committerDaniel Kesselberg <mail@danielkesselberg.de>
Mon, 31 Jul 2023 19:41:25 +0000 (21:41 +0200)
because rmdir does not work for files.

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
lib/private/Files/Storage/Local.php

index fb62a53d894073712a67f17a66d9632e0430ea4e..02708ed4f7d0038849fb61843f3363d34f24bb7a 100644 (file)
@@ -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) {