Skip to content

Commit

Permalink
Merge pull request #39644 from nextcloud/fix/noid/copy-delete-fallbac…
Browse files Browse the repository at this point in the history
…k-for-files

fix: copy-and-delete fallback should use unlink
  • Loading branch information
kesselb committed Aug 14, 2023
2 parents 433cb70 + f1d4f7c commit 2ea6c53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Files/Storage/Local.php
Expand Up @@ -368,7 +368,7 @@ public function rename($source, $target): bool {
return true;
}

return $this->copy($source, $target) && $this->rmdir($source);
return $this->copy($source, $target) && $this->unlink($source);
}

public function copy($source, $target) {
Expand Down

0 comments on commit 2ea6c53

Please sign in to comment.