Hi hrisheekesh_kale,
See Restrict file search within current filessystem using wanted subroutine for how to restrict File::Find to the filesystem(s) on which the search began. You can also implement your own logic and use the $File::Find::topdev variable in other ways, such as exclude certain filesystems from the search. To get the device number of a path, try this: perl -le 'print +(stat("/tmp"))[0]'
Hope this helps,
-- Hauke D
In reply to Re: File::Find options to ignore NFS mounts
by haukex
in thread File::Find options to ignore NFS mounts
by hrisheekesh_kale
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |