Behavior of StatObject changed in 6.0.1
coronabytes opened this issue · 1 comments
coronabytes commented
Hi,
we used the following code to check if an object exists in minio.
Up till 6.0.0 this was working as expected
public async Task<bool> ExistsAsync(string bucket, string path)
{
try
{
var stat = await _client.StatObjectAsync(new StatObjectArgs().WithBucket($"{_realm}-{bucket}").WithObject(path)).ConfigureAwait(false);
return true;
}
catch (ObjectNotFoundException)
{
return false;
}
}
no exception is thrown in 6.0.1
any suggestion what props to test for nonexistence?
size == 0 maybe?