aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Lib/Storage/SFTP.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/lib/Lib/Storage/SFTP.php')
-rw-r--r--apps/files_external/lib/Lib/Storage/SFTP.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/files_external/lib/Lib/Storage/SFTP.php b/apps/files_external/lib/Lib/Storage/SFTP.php
index e46f60d0be4..faf51369375 100644
--- a/apps/files_external/lib/Lib/Storage/SFTP.php
+++ b/apps/files_external/lib/Lib/Storage/SFTP.php
@@ -435,14 +435,14 @@ class SFTP extends \OC\Files\Storage\Common {
/**
* {@inheritdoc}
*/
- public function rename($source, $target) {
+ public function rename($path1, $path2) {
try {
- if ($this->file_exists($target)) {
- $this->unlink($target);
+ if ($this->file_exists($path2)) {
+ $this->unlink($path2);
}
return $this->getConnection()->rename(
- $this->absPath($source),
- $this->absPath($target)
+ $this->absPath($path1),
+ $this->absPath($path2)
);
} catch (\Exception $e) {
return false;