make param names consistent with interface for copy directory polyfill
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
9f0cb8394b
commit
3230ac7bb9
|
@ -65,15 +65,15 @@ trait CopyDirectory {
|
||||||
*/
|
*/
|
||||||
abstract public function mkdir($path);
|
abstract public function mkdir($path);
|
||||||
|
|
||||||
public function copy($source, $target) {
|
public function copy($path1, $path2) {
|
||||||
if ($this->is_dir($source)) {
|
if ($this->is_dir($path1)) {
|
||||||
if ($this->file_exists($target)) {
|
if ($this->file_exists($path2)) {
|
||||||
$this->unlink($target);
|
$this->unlink($path2);
|
||||||
}
|
}
|
||||||
$this->mkdir($target);
|
$this->mkdir($path2);
|
||||||
return $this->copyRecursive($source, $target);
|
return $this->copyRecursive($path1, $path2);
|
||||||
} else {
|
} else {
|
||||||
return parent::copy($source, $target);
|
return parent::copy($path1, $path2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue