Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: opendir in file find

by dga (Hermit)
on Jul 25, 2003 at 17:14 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-03-28 08:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found