uutils / findutils

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

Implement `-ls` and `-fls` #382

Open hanbings opened 1 month ago

hanbings commented 1 month ago

refer: https://www.gnu.org/software/findutils/manual/html_node/find_html/Print-File-Information.html Note that this option has many different cases, if we are not familiar with this we will need to consult the reference.

Action: -ls
True; list the current file in ‘ls -dils’ format on the standard output. The output looks like this:

204744   17 -rw-r--r--   1 djm      staff       17337 Nov  2  1992 ./lwall-quotes

Action: -fls file
True; like ‘-ls’ but write to file like ‘-fprint’. 
The named output file is always created, even if no output is sent to it.

-fprint see Print File Name