def copyTo(self, dstKeyName, dstBucket):
            dstKey = dstBucket.new_key(dstKeyName)

            if self.content is not None:
                dstKey.set_contents_from_string(self.content)

            elif self.version:
                srcKey = self.outer.filesBucket.get_key(self.fileID, headers=self._s3EncryptionHeaders())
                self._copyKey(srcKey=srcKey,
                              dstBucketName=dstBucket.name,
                              dstKeyName=dstKeyName,
                              headers={"amz-copy-source".join(k.split('amz')): v
                                       for k, v in self._s3EncryptionHeaders().items()})
            else:
                assert False
Copies contents of file to destination key.
dataset/ETHPy150Open BD2KGenomics/toil/src/toil/jobStores/aws/jobStore.py/AWSJobStore.FileInfo.copyTo