I'm quite new to GCP, and now struggling to list out files after a given key.
In AWS, we can provide an additional parameter StartAfter to the list_objects_v2() boto3 call for S3 client. Then, it will start providing files starting from that particular key.
kwargs["StartAfter"] = start_after_file
response = self._storage_client.list_objects_v2(
Bucket=self._bucket_name,
Prefix=prefix,
**kwargs
)
I need to do the same in GCP, using the Google Cloud Storage (in Python). I'm going to use list_blobs() in Storage Client class, but I can't find any way to do this.
prefix parameter won't help since it will only return the files with that prefix.
Does anyone know how I can achieve this?