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

Re^2: checking to see if a directory is empty

by mhi (Friar)
on Nov 17, 2006 at 13:14 UTC ( [id://584723]=note: print w/replies, xml ) Need Help??


in reply to Re: checking to see if a directory is empty
in thread checking to see if a directory is empty

Note that some *NIX flavors do allow hard links to directories! It is admittedly highly unlikely that your friendly sysadmin would dare to use this privilege, for fear of corrupting the file system.

However, if she did, that directory would have a higher linkcount than expected, even when devoid of subdirectories.

Also note that files contained in a directory do not count towards the directory's link-count. Only immediate subdirectories do.

  • Comment on Re^2: checking to see if a directory is empty

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://584723]
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-04-25 08:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found