Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to detect deleted objects with call to ListObjectsAsync() #807

Open
brettzook opened this issue Jul 25, 2023 · 0 comments
Open

How to detect deleted objects with call to ListObjectsAsync() #807

brettzook opened this issue Jul 25, 2023 · 0 comments

Comments

@brettzook
Copy link

I have a bucket with versioning enabled, that contains these objects, as seen in the MinIO web UI:

image

Note that I have the Show deleted objects option selected, and the object named links.csv has been deleted. Also this is the full version history of links.csv:
image

I'm using version 5.0.0 of the Nuget package, and calling ListObjectsAsync(listArgs) with a parameter like

new ListObjectsArgs()
        .WithBucket("document-management-test")
        .WithPrefix("DirA/")
        .WithRecursive(false)
        .WithVersions(true);

The results include records for both objects, and specifically there are two records for links.csv representing the first two versions (dff166a9 and f3d45bdc), but none representing the fact that the object was deleted.

image

Should the 'deleted' version be appearing in these results or is there some other intended way to know the object is in a deleted state?

@brettzook brettzook changed the title How to detect deleted files with call to ListObjectsAsync() How to detect deleted objects with call to ListObjectsAsync() Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant