Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: opendir in file find

by dga (Hermit)
on Jul 25, 2003 at 17:14 UTC ( #277913=note: print w/replies, xml ) Need Help??

in reply to opendir in file find

Directory Permissions

On Linux it works like so:

I have the following structure x/y/z where z is a file and x and y are directories.

dr--r--r--: This allows listing x and seeing y but y cannot have stat called on it so nothing can be determined about it. y cannot be listed.

d--x--x--x: This allows y to be listed if you already know that it is there. x cannot be listed. You can chdir to x.

dr-xr-xr-x: x can be listed and chdir'ed to y is fully functional.

So I would say that for a directory to be useable from the standpoint of File::Find that read (-r) and execute (-x) will probably both be needed on a directory in question.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2021-06-18 06:17 GMT
Find Nodes?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)

    Results (88 votes). Check out past polls.