Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Some File::Find woes.

by bluto (Curate)
on Jan 12, 2004 at 23:50 UTC ( [id://320817]=note: print w/replies, xml ) Need Help??


in reply to Some File::Find woes.

In addition to tye's suggestions, you'll may also want to make sure you are actually removing a file by checking the type (i.e. with the '-f' operator) unless you know for sure you won't have directories ending in '.pdf'.

FWIW, I bet 2M files takes a while to search through. During this time I'm assuming the tree can change quite a bit. You may see interesting errors as File::Find tries to cope with moved/renamed subtrees/files.

Perhaps W2K has some built in and/or scriptable method of locating files more quickly than searching the entire namespace one entry at a time?

bluto

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-24 17:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found