Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: File::Find traversing a link into a mounted flash drive

by RonW (Parson)
on Feb 05, 2016 at 18:48 UTC ( #1154505=note: print w/replies, xml ) Need Help??


in reply to File::Find traversing a link into a mounted flash drive

When running, do you get a "processing link" message for the symlink'ed filesystem? If so, you can use readlink to see if the link is to another filesystem, then call File::Find::find with the target of the link as the start point.

Disclaimer: Not tested.

  • Comment on Re: File::Find traversing a link into a mounted flash drive

Replies are listed 'Best First'.
Re^2: File::Find traversing a link into a mounted flash drive
by swampyankee (Parson) on Feb 05, 2016 at 18:56 UTC

    No, and thanks!


    Information about American English usage here and here. Floating point issues? Please read this before posting. — emc

      In that case. I would suggest that every time you enter a new directory, scan it yourself for symlinks, then call File::Find::find for each target that is on a different filesystem.

        I did that, and it works! Thanks!


        Information about American English usage here and here. Floating point issues? Please read this before posting. — emc

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1154505]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2020-10-20 09:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (209 votes). Check out past polls.

    Notices?