How to list files in Spaces
Hi,
I have set up a Spaces and I can add files to it using laravel and S3 API package.
Now I need to list my file to check if the modified date is 1 month old and then delete that file.
I have tried to list object but I get:
Error executing "ListObjects" on "https://ams3.digitaloceanspaces.com/my-space%2Fbackups%2Fmy-folder?prefix=&delimiter=%2F&encoding-type=url"; AWS HTTP error: Client error: `GET https://ams3.digitaloceanspaces.com/my-space%2Fbackups%2Fmy-folder?prefix=&delim
iter=%2F&encoding-type=url` resulted in a `404 Not Found` response:
<?xml version="1.0" encoding="UTF-8"?><Error><Code>NoSuchKey</Code><BucketName>my-space</BucketName><RequestId>tx0000000 (truncated...)
NoSuchKey (client): - <?xml version="1.0" encoding="UTF-8"?><Error><Code>NoSuchKey</Code><BucketName>my-space</BucketName><RequestId>tx0000000000000002405a5-005a5605e4-7bd0-ams3a</RequestId><HostId>7bd0-ams3a-ams3</HostId></Error>
In RequestException.php line 113:
Client error: `GET https://ams3.digitaloceanspaces.com/my-space%2Fbackups%2Fmy-folder?prefix=&delimiter=%2F&encoding-type=url` resulted in a `404 Not Found` response:
<?xml version="1.0" encoding="UTF-8"?><Error><Code>NoSuchKey</Code><BucketName>my-space</BucketName><RequestId>tx0000000 (truncated...)