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 $ +!;
In reply to Re: How do I copy an empty directory?
by Kenosis
in thread How do I copy an empty directory?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |