uutils / findutils

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

Implement `-fstype` #374

Closed hanbings closed 1 week ago

hanbings commented 1 month ago

refer: https://www.gnu.org/software/findutils/manual/html_node/find_html/Filesystems.html

Test: -fstype type
True if the file is on a filesystem of type type. 
The valid filesystem types vary among different versions of Unix; 
an incomplete list of filesystem types that are accepted on some version of Unix or another is:

autofs ext3 ext4 fuse.sshfs nfs proc sshfs sysfs ufs tmpfs xfs

You can use ‘-printf’ with the ‘%F’ directive to see the types of your filesystems. 
The ‘%D’ directive shows the device number.