Nobuyoshi Nakada
4/20/2007 6:23:00 AM
Hi,
At Fri, 20 Apr 2007 09:45:06 +0900,
Greg wrote in [ruby-talk:248510]:
> Working through Pine's Programming book and got this error (complete at
> bottom):
>
> Cross-device link -...(Errno::EXDEV)
>
> Trying to read photos from a memory card to hard drive and rename them.
File.rename doesn't copy file content, just change the name.
So it can't move a file across devices. You may want to use
FileUtils.cp method.
--
Nobu Nakada