<?xml version="1.0" encoding="windows-1252"?>
<node id="996906" title="How do I copy an empty directory?" created="2012-10-02 16:20:49" updated="2012-10-02 16:20:49">
<type id="115">
perlquestion</type>
<author id="961">
Anonymous Monk</author>
<data>
<field name="doctext">
This question seems so simple, I am almost embarrassed to ask it but yet I can't figure it out so here goes.  I have an empty directory name, x:\this\directory\name\is\empty.  How can I move the empty directory named "empty" at the end of the path to c:\temp for example to make c:\temp\empty?&lt;br&gt;&lt;br&gt;
The operating system is Windows in case that matters and I actually thought about using a system call to either xcopy or robocopy and neither of them will do it either, even with all attempts at using their switches such as /e /s /t, and more.  All I can seem to copy is all the data UNDER the directory if it were NOT empty but again, some directories in my path are empty and some are not so I need to copy them all, either way.

Any ideas would certainly be welcome.

Thank you.</field>
<field name="reputation">
3</field>
</data>
</node>
