I'm using File::Find::dir to find a particular file that may exist on a server, however, there are NFS mounts that I need to exclude.
This is the pertinent section of my code.
This is the pertinent section of my code.
Code:
find(sub {
if ($_ =~ /myfile$/) {
push(@files, [$File::Find::dir . "/$_", (stat($_))[7]]);
}
}, "/");