Allow sorting files based on access, modification, or creation times
Hello,
I needed to list files based on their creation (birth) time, but unfortunately, lsd did not support this functionality.
This PR introduces the ftime option, which, when used alongside the -t option, allows listing files ordered by access, modification, or creation (birth) time. This implementation addresses the requirements of #1002.
This PR consists of two commits:
- The first commit introduces the new ftime option.
- The second commit updates the code to retrieve the appropriate file time (access, modification, or creation) in the metadata.
TODO
- [X] Use
cargo fmt - [X] Add necessary tests
- [X] Update man page at lsd/doc/lsd.md (if applicable)
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: uggla
Once this PR has been reviewed and has the lgtm label, please assign zwpaper for approval by writing /assign @zwpaper in a comment. For more information see:The Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
/lgtm
@uggla: you cannot LGTM your own PR.
In response to this:
/lgtm
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
/cc
@uggla: GitHub didn't allow me to request PR reviews from the following users: uggla.
Note that only lsd-rs members and repo collaborators can review this PR, and authors cannot review their own PRs.
In response to this:
/cc
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.