Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2021-10-14 11:29:24 +0300
committerGitHub <noreply@github.com>2021-10-14 11:29:24 +0300
commit739b67031be765131956f25a7ced524ab4976924 (patch)
tree7b7ef3f7628bf3d6f579f10468a0e4b2bbccab1f /lib/private/Files/Storage
parent811d0cd1b5f3967571da9846892cdcd14c2eaaec (diff)
parenta3f1d10f4d6a09d2e3a706ab05cd933505d76630 (diff)
Merge pull request #27194 from nextcloud/new-ftp
Diffstat (limited to 'lib/private/Files/Storage')
-rw-r--r--lib/private/Files/Storage/PolyFill/CopyDirectory.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/private/Files/Storage/PolyFill/CopyDirectory.php b/lib/private/Files/Storage/PolyFill/CopyDirectory.php
index ff05eecb134..7fd418f6dca 100644
--- a/lib/private/Files/Storage/PolyFill/CopyDirectory.php
+++ b/lib/private/Files/Storage/PolyFill/CopyDirectory.php
@@ -64,15 +64,15 @@ trait CopyDirectory {
*/
abstract public function mkdir($path);
- public function copy($source, $target) {
- if ($this->is_dir($source)) {
- if ($this->file_exists($target)) {
- $this->unlink($target);
+ public function copy($path1, $path2) {
+ if ($this->is_dir($path1)) {
+ if ($this->file_exists($path2)) {
+ $this->unlink($path2);
}
- $this->mkdir($target);
- return $this->copyRecursive($source, $target);
+ $this->mkdir($path2);
+ return $this->copyRecursive($path1, $path2);
} else {
- return parent::copy($source, $target);
+ return parent::copy($path1, $path2);
}
}