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

Use statx to get creation time of files on Linux #591

Closed
wants to merge 4 commits into from

Conversation

ariasuni
Copy link
Collaborator

@ariasuni ariasuni commented Oct 3, 2019

I used the crate statx-sys to get the creation time of files under Linux >= 4.11, as Rust stdlib will not have statx support before some time (since it involves a breaking change).

Notable changes:

  • Updated the error message with “(needs Linux >= 4.11)”
  • Removed a tests that could either pass or fail if Linux >= 4.11 or not

I’m waiting for this PR for statx-sys to be accepted to be able to use the correct field name right away (see PR for details).

Edit: using libc and bumping its version instead.

@ariasuni ariasuni changed the title [WIP] Use statx to get creation time of files on Linux Use statx to get creation time of files on Linux Oct 3, 2019
@ariasuni
Copy link
Collaborator Author

Never mind, a workaround has finally been found to use statx if available under Linux, so no modification of the current exa code is necessary to make it work, we just have to wait for a new Rust release:
rust-lang/rust#65094 (comment)

Thank you @oxalica :)

@ariasuni ariasuni closed this Oct 20, 2019
@ariasuni ariasuni deleted the creation-time-on-linux branch October 20, 2019 16:48
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

Successfully merging this pull request may close these issues.

1 participant