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

Hello, I need to get my object upload date. #11

Open
MyoThantAung opened this issue Oct 14, 2021 · 4 comments
Open

Hello, I need to get my object upload date. #11

MyoThantAung opened this issue Oct 14, 2021 · 4 comments

Comments

@MyoThantAung
Copy link

Hello Sir,
I want to know how to get my object upload date. I want to watch my my file changes.
Thanks!

@mniewrzal
Copy link
Collaborator

Hey,
did you try something like:

Uplink uplink = new Uplink();
try (Project project = uplink.openProject(access)) {
    ObjectInfo objectInfo = project.statObject("bucket", "key");
    // upload data is in objectInfo.getSystemMetadata().getCreated()
}

@MyoThantAung
Copy link
Author

MyoThantAung commented Oct 14, 2021

Hello Thanks for your comment.

But I already try that it return {created=Thu Jan 01 06:30:00 GMT+06:30 1970}.
I really want to know about my upload data of my object.

If I get upload date, I can know it was updated or not.

Thanks

@Erikvv
Copy link
Contributor

Erikvv commented Oct 15, 2021

Looks like a bug then.

I presume this object has the correct date with uplink-cli? uplink ls sj://bucket/key

@MyoThantAung
Copy link
Author

I think it's a bug.

I get correct date on uplink ls sj://bucket/key

When I use in uplink-android, it only return {created=Thu Jan 01 06:30:00 GMT+06:30 1970}.

Thanks

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

3 participants