Skip to content

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