Can't list all keys on Spaces: no continuation token
I’m using Digital Ocean spaces to store the files the users upload.
I currently have around 6 million.
I’m using Node JS and AWS-SDK to manage all these files, and right now I want to get the list of keys of all these files.
However, when I try S3.listObjectV2, it doesn’t return any continuation token or anything so that I’m stuck with the first 1000 files.
Looking forward to your reply.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.