Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: checking to see if a directory is empty

by bofh_of_oz (Hermit)
on Jul 27, 2005 at 19:16 UTC ( #478705=note: print w/ replies, xml ) Need Help??


in reply to checking to see if a directory is empty

I would suggest using File::Copy::Recursive to transfer directories (or File::NCopy if you wish) recursively, File::Dircmp to verify if everything was copied properly, and File::Path to remove source tree.

And I also know that there should be an easier way to do it...

--------------------------------
An idea is not responsible for the people who believe in it...


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2015-07-04 00:47 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 (57 votes), past polls