fix: copy-and-delete fallback should use unlink

because rmdir does not work for files.

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2023-07-31 21:41:25 +02:00
parent 27916deb95
commit f1d4f7c7e4
No known key found for this signature in database
GPG key ID: 36E3664E099D0614

View 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) {