On Mon, 10 Jan 2005 05:12:18 +0900, Andrew Walrond <andrew / walrond.org> wrote:
> But I cannot get a symlink to copy as a symlink. Example:
This appears to be a bug.

In my version of Ruby, File.stat('/some/symlink').file? returns true
if the symlink points to a file.

If you look at fileutils.rb, you'll see the case statement in
CopyContext_#_copy_entry puts the st.file? condition before the
st.symlink? condition, so st.symlink? will never be true, and
#_copy_content will always be used.

Leon