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

Re: A little help w/ stat() por favor...

by clintp (Curate)
on Jan 11, 2002 at 07:11 UTC ( #137909=note: print w/ replies, xml ) Need Help??


in reply to A little help w/ stat() por favor...

Maybe I missed this in the suggestions: but the files coming back from readdir don't have the full pathname, and you're storing them that way (just the filenames). When you -f them, you're remembering to append the pathname on them, but when you stat the files later...you forgot to prepend "/var/www/..." again. (In addition to the other problem of not using stat()'s return value correctly.)


Comment on Re: A little help w/ stat() por favor...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2015-07-31 03:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls