mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
make param names consistent with interface for copy directory polyfill
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
ace4756192
commit
b3766fc99b
1 changed files with 7 additions and 7 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue