简体   繁体   English

附加到S3中的文本文件

[英]Appending to a text file in S3

I know how to write and read from a file in S3 using boto. 我知道如何使用boto在S3中写入和读取文件。 I'm wondering if there is a way to append to a file without having to download the file and re-upload an edited version? 我想知道是否有一种方法可以附加到文件上而不必下载文件并重新上传编辑后的版本?

There is no way to append data to an existing object in S3. 在S3中无法将数据附加到现有对象。 You would have to grab the data locally, add the extra data, and then write it back to S3. 您将不得不在本地获取数据,添加额外的数据,然后将其写回到S3。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM