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:
authorRobin Appelman <robin@icewind.nl>2021-05-31 16:36:22 +0300
committerRobin Appelman <robin@icewind.nl>2021-10-07 18:19:44 +0300
commitb3766fc99bdef65d185f8a94071c50a96d313331 (patch)
treefc20fdb9371bda7d1ff8818c2484182af5523b2a /lib/private/Files/Storage
parentace475619262a3dae8f17abd563b6bbdfd11cdfe (diff)
make param names consistent with interface for copy directory polyfill
Signed-off-by: Robin Appelman <robin@icewind.nl>
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);
}
}