Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: How do I copy an empty directory?

by kcott (Chancellor)
on Oct 03, 2012 at 01:19 UTC ( #996950=note: print w/replies, xml ) Need Help??


in reply to Re^2: How do I copy an empty directory?
in thread How do I copy an empty directory?

Well, it seems you're correct with respect to File::Copy::copy(); however, File::Copy::move() seems to work fine.

I tried copy() on an empty directory and just got an empty (normal) file. I then tried move() on an empty directory and that worked; move() on a populated directory also worked, i.e. moved the directory and its contents.

If you're the OP, sorry for the bum steer. I'll update my post.

-- Ken

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://996950]
help
Chatterbox?
[SuicideJunkie]: email tests, eh? I've gotten dinged for "you can't block this sender as spam, they're internal"
[Corion]: Heh - somebody in our marketing departement thought it was a great idea to use the alerting tool for company-wide outages to announce some new feature ;)

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (15)
As of 2017-05-24 14:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?