From: Mrmaster Mrmaster Date: 2009-06-17T09:56:00+09:00 Subject: Re: Which is more expensive Rename or Move? Phil Romero wrote: > On Tue, Jun 16, 2009 at 11:45 AM, Mrmaster > Mrmaster wrote: >> -- >> Posted via http://www.ruby-forum.com/. >> >> > > Just to add a bit more to this conversation, the only time an mv > operation would be more expensive is in the case of actually mv'ing > across filesystems. You could have mv'd a file from say your > /home/username directory on sda1 to /newhome/username on sda2 (two > physically different partitions). Strange that this would come up. I > think rename is mv with a cross filesystem limitation. I don't use > rename for anything in *nix, always has been mv. I think the rename command in the linux box calls a perl script too which will add to the cost. -- Posted via http://www.ruby-forum.com/.