pankaj_it09 has asked for the wisdom of the Perl Monks concerning the following question:

File::Find traverses a network folder also.

How to make it traverse all the shared folders of a machine by inputting the IPAddress only?

Replies are listed 'Best First'.
Re: File::Find Shared Folder Traversal
by keszler (Priest) on Nov 11, 2009 at 10:24 UTC
    Please define "shared folders": Windows shares? NFS? Other?

    Assuming Windows, see Win32::NetResource. You might also need Net::DNS to get the names from the IP addresses.

      The shared folders can be in both Windows or Linux.

      For Linux which package to use ?
        Please define "shared folders": Windows shares (via Samba?)? NFS? Other?

        If Windows shares via Samba or some equivalent, see Win32::NetResource. You might also need Net::DNS to get the names from the IP addresses.

        If NFS, shares that are already mounted? If so check /etc/fstab.

        If NFS and looking for shares that are not mounted, Net::SSH2 into the sharing box and check /etc/exports or equivalent.

        You should also read How do I post a question effectively?.