Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: How do I copy an empty directory?

by Kenosis (Priest)
on Oct 02, 2012 at 21:05 UTC ( #996920=note: print w/replies, xml ) Need Help??


in reply to How do I copy an empty directory?

Although hominid's solution makes a lot of sense, here's another option:

use strict; use warnings; use File::Copy::Recursive qw/ dirmove /; dirmove( 'x:\this\directory\name\is\empty', 'c:\temp\empty' ) or die $ +!;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://996920]
help
Chatterbox?
choroba was busy with the Pull Request Challenge

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2017-01-23 09:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (192 votes). Check out past polls.