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:
Côme Chilliet 2024-02-22 13:31:06 +01:00
parent d37436a49f
commit c412f342d6
No known key found for this signature in database
GPG key ID: A3E2F658B28C760A
3 changed files with 12 additions and 0 deletions

View file

@ -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);

View file

@ -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);

View file

@ -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);