Closed mniewrzal closed 1 month ago
Doesn't seem right to remove multiple objects without the user explicitly asking for that
uplinkng has a flag --recursive
Most probably but at least I would expect different result output. I would like to know that nothing was removed at the end.
This is libuplink behavior.
Not returning ErrObjectNotFound is justified by some so that the operation is idempotent. I agree with you that it should give an error but I was not able to convince others about this, I think @egonelbre but he wasn't the only one.
By the way you can distinguish between these situations: if the object existed, DeleteObject will return Object metadata, else it will be null.
But if we want to rely on this behavior we should document this at https://pkg.go.dev/storj.io/uplink#Project.DeleteObject
Yes, this is the only way we can figure out that something was really deleted. I will make a thicket to improve go doc for DeleteObject
.
this issue is stale, if this comes up we will open a new issue.
I'm trying remove a prefix "test2"
Command I executed
but nothing was removed. I also noticed that no matter what I type it will say its removed.