<div class="gmail_quote">On Fri, Sep 25, 2009 at 12:06 PM, Eric Noulard <span dir="ltr"><<a href="mailto:eric.noulard@gmail.com">eric.noulard@gmail.com</a>></span> wrote:<br><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2009/9/25 Kelly (KT) Thompson <<a href="mailto:kt@transpireinc.com">kt@transpireinc.com</a>>:<br>
<div class="im">> Hi,<br>
><br>
> I am having intermittent trouble executing<br>
><br>
> $ cmake -E copy_directory /full/path/to/large/directory /new/path<br>
><br>
> Originally, the copy_directory was failing deep in my build system<br>
> (add_custom_command), but the failure is repeatable from the command line<br>
> (exactly as shown above). The failure message is always the same:<br>
><br>
> $ Error copying directory from "/full/path/to/large/directory" to<br>
> "/new/path".<br>
><br>
> Does anyone have any thoughts on how to determine the actual cause of the<br>
> failure.<br>
<br>
</div>May be you can try to strace the execution in order to see where it fails?<br></blockquote></div><br>Great idea. (Now why didn't I think of that?!?) <br><br>Strace found the problem. There was an invalid symbolic link buried deep in my directory structure that was failing with ENOENT (No such file or directory).<br>
<br>I guess cp blindly copies the symlink w/o checking for the existence of the target. <br><br>Thanks!<br><br>