uutils / findutils

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

Implement `-follow` #308

Open sylvestre opened 6 months ago

sylvestre commented 6 months ago

Even if this is deprecated, for compat, we should implement it:


       -follow
              Deprecated; use the  -L  option  instead.   Dereference  symbolic  links.   Implies
              -noleaf.   The -follow option affects only those tests which appear after it on the
              command line.  Unless the -H or -L option has been specified, the position  of  the
              -follow  option  changes the behaviour of the -newer predicate; any files listed as
              the argument of -newer will be dereferenced if they are symbolic links.   The  same
              consideration applies to -newerXY, -anewer and -cnewer.  Similarly, the -type pred-
              icate will always match against the type of the file that a symbolic link points to
              rather  than  the  link itself.  Using -follow causes the -lname and -ilname predi-
              cates always to return false.
DweepKM commented 5 months ago

Can I be assigned this problem?

sylvestre commented 5 months ago

sure, please submit a PR :)

sylvestre commented 2 months ago

@DweepKM did you submit a PR at the end ? :)

sylvestre commented 1 month ago

@hanbings could you please add this to your todo list ? :) thanks

hanbings commented 1 month ago

@hanbings could you please add this to your todo list ? :) thanks

Of course! I'm happy to help.