lib/io_streams/paths/s3.rb in iostreams-1.5.0 vs lib/io_streams/paths/s3.rb in iostreams-1.5.1

- old
+ new

@@ -201,10 +201,10 @@ # Make S3 perform direct copies within S3 itself. def copy_from(source_path, convert: true) return super(source_path) if convert source = IOStreams.new(source_path) - return super(source, **args) unless source.is_a?(self.class) + return super(source) unless source.is_a?(self.class) source_name = ::File.join(source.bucket_name, source.path) client.copy_object(options.merge(bucket: bucket_name, key: path, copy_source: source_name)) end