mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
fixup! fix: Update children classes of Common to respect copy signature
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
d37436a49f
commit
c412f342d6
3 changed files with 12 additions and 0 deletions
|
|
@ -573,6 +573,10 @@ class AmazonS3 extends \OC\Files\Storage\Common {
|
|||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $source
|
||||
* @param string $target
|
||||
*/
|
||||
public function copy($source, $target, bool $preserveMtime = false, ?bool $isFile = null): bool {
|
||||
$source = $this->normalizePath($source);
|
||||
$target = $this->normalizePath($target);
|
||||
|
|
|
|||
|
|
@ -519,6 +519,10 @@ class SFTP extends Common {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $source
|
||||
* @param string $target
|
||||
*/
|
||||
public function copy($source, $target, bool $preserveMtime = false): bool {
|
||||
if ($this->is_dir($source) || $this->is_dir($target)) {
|
||||
return parent::copy($source, $target, $preserveMtime);
|
||||
|
|
|
|||
|
|
@ -483,6 +483,10 @@ class Swift extends \OC\Files\Storage\Common {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $source
|
||||
* @param string $target
|
||||
*/
|
||||
public function copy($source, $target, bool $preserveMtime = false): bool {
|
||||
$source = $this->normalizePath($source);
|
||||
$target = $this->normalizePath($target);
|
||||
|
|
|
|||
Loading…
Reference in a new issue