uutils / findutils

Rust implementation of findutils
MIT License
280 stars 35 forks source link

Implement `-anewer` and `-cnewer` #370

Closed hanbings closed 1 month ago

hanbings commented 1 month ago

refer: https://www.gnu.org/software/findutils/manual/html_node/find_html/Comparing-Timestamps.html

Test: -anewer reference
Test: -cnewer reference
Test: -newer reference

True if the time of the last access (or status change or data modification) of the current file is more recent 
than that of the last datamodification of the reference file. 
As such, ‘-anewer’ is equivalent to ‘-neweram’, ‘-cnewer’ to ‘-newercm’, and ‘-newer’ to ‘-newermm’.