Google Cloud Storage:如何使用 gsutil 获取存储桶/文件夹中的新文件列表 [英] Google Cloud Storage: How to get list of new files in bucket/folder using gsutil
本文介绍了Google Cloud Storage:如何使用 gsutil 获取存储桶/文件夹中的新文件列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
I have a bucket/folder into which a lot for files are coming in every minutes. How can I read only the new files based on file timestamp.
eg: list all files with timestamp > my_timestamp
解决方案
This is not a feature that gsutil or the GCS API provides, as there is no way to list objects by timestamp.
Instead, you could subscribe to new objects using the GCS Cloud Pub/Sub feature.
这篇关于Google Cloud Storage:如何使用 gsutil 获取存储桶/文件夹中的新文件列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文