In this document, the behavior of NextMarker is demonstrated using a Python script attached at the bottom.
Make sure you have installed AWS SDK boto3 for Python on your CLI before running the script
Note that this code example discusses the use of Wasabi's us-east-1 storage region. To use other Wasabi storage regions, use the appropriate Wasabi service URL.
Below is the flow of this script:
Using the boto3 client, create a bucket with a folder named(src). Under the folder src, create three more folders named (a,b,c) and under each folder, upload three files named(1,3,5). Below is the behavior of Wasabi when we list objects by setting the marker(start point) to different objects.
When we set the marker to point to (src/b/2/) and try to list objects in the bucket using boto3. The NextMarker is set to ‘src/b/’ in response.

When we set a marker to point(src/b/) and try to list objects inside the bucket using boto3. The NextMarker is set to ‘src/c/’ in the response.
.png)
When we set a marker to point (src/b/5/) and try to list objects inside the bucket using boto3. The NextMarker is set as ‘src/c/’ in response.
.png)
In Wasabi:
If there are any objects under the pointed marker (for example, src/b/3), then NextMarker is still set as the same marker path(src/b/) in the response.
If there are no objects under the pointed marker (for example, src/b/5), then NextMarker is set as the next folder(src/c/) in the response.
In Amazon:
If there are any objects or not under the pointed marker (for example, src/b/3/), then NextMarker is set as the next folder (src/c/) in the response.