It doesn't look like there's a way to detect if an object exists using a Worker. For example, I'd
It doesn't look like there's a way to detect if an object exists using a Worker.
For example, I'd like to do something like this just to see if an object exists or not.
Right now, it seems the only way to do that is
This seems wasteful as I don't actually need the object's data or want to wait around for a 10MB file to be sent across the wire. I just want to know if it exists.
Is there any way to do this?
For example, I'd like to do something like this just to see if an object exists or not.
await env.MY_BUCKET.list("my_key")Right now, it seems the only way to do that is
await env.MY_BUCKET.get("my_key")This seems wasteful as I don't actually need the object's data or want to wait around for a 10MB file to be sent across the wire. I just want to know if it exists.
Is there any way to do this?
