本文介绍了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 获取存储桶/文件夹中的新文件列表
发布评论