Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Check Directories for Files

by halfcountplus (Hermit)
on Nov 24, 2009 at 19:33 UTC ( [id://809179]=note: print w/replies, xml ) Need Help??


in reply to Check Directories for Files

Since these appear to be in a tree, you might want to investigate File::Find, which works recursively. You can use the callback to the find() to move the files found to wherever.
find (\&checkfor, "D:/DOWNLOAD/DISTRBTN/I01/"); sub checkfor { if (-f $_) { print $File::Find::name."\n" }; }
That will print out the full pathnames of all files in DISTRVTN/IO1 and all of it's subdirectories.

Log In?
Username:
Password:

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

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

    No recent polls found