mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
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:
parent
27916deb95
commit
f1d4f7c7e4
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue