diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-02-22 13:31:06 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-02-22 13:31:06 +0100 |
commit | c412f342d630cc809c8b311a69c7fb324fb150aa (patch) | |
tree | 2cb99af65ac71a1ccc939288dfef024e54372ac5 | |
parent | d37436a49f2d6f41d537fb13e0b2ae04a45f909d (diff) | |
download | nextcloud-server-enh/test-mtime-after-move.tar.gz nextcloud-server-enh/test-mtime-after-move.zip |
fixup! fix: Update children classes of Common to respect copy signatureenh/test-mtime-after-move
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r-- | apps/files_external/lib/Lib/Storage/AmazonS3.php | 4 | ||||
-rw-r--r-- | apps/files_external/lib/Lib/Storage/SFTP.php | 4 | ||||
-rw-r--r-- | apps/files_external/lib/Lib/Storage/Swift.php | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/apps/files_external/lib/Lib/Storage/AmazonS3.php b/apps/files_external/lib/Lib/Storage/AmazonS3.php index 29e4765f2ac..67438502207 100644 --- a/apps/files_external/lib/Lib/Storage/AmazonS3.php +++ b/apps/files_external/lib/Lib/Storage/AmazonS3.php @@ -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); diff --git a/apps/files_external/lib/Lib/Storage/SFTP.php b/apps/files_external/lib/Lib/Storage/SFTP.php index d779a550d13..746c0fc7cca 100644 --- a/apps/files_external/lib/Lib/Storage/SFTP.php +++ b/apps/files_external/lib/Lib/Storage/SFTP.php @@ -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); diff --git a/apps/files_external/lib/Lib/Storage/Swift.php b/apps/files_external/lib/Lib/Storage/Swift.php index 6f2e9f1ee1c..e5da595ad7d 100644 --- a/apps/files_external/lib/Lib/Storage/Swift.php +++ b/apps/files_external/lib/Lib/Storage/Swift.php @@ -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); |