From: Minero Aoki Date: 2004-12-23T10:04:49+09:00 Subject: Re: All I want to do is move a directory :( Hi, In mail "Re: All I want to do is move a directory :(" "trans. (T. Onoma)" wrote: > I think the problem may be that the :force option isn't working correctly on > FilUtils#mv. Isn't that supposed to force the move even if the file/directory > is already there? It depends on what is the *correct* behavior. At least GNU mv does not overwrite directory: % find . ./trash ./trash/a ./trash/a/test ./a ./a/test ./a/test2 % mv a trash mv: cannot overwrite directory `trash/a' % mv -f a trash mv: cannot overwrite directory `trash/a' % find . ./trash ./trash/a ./trash/a/test ./a ./a/test ./a/test2 % In my opinion, :force option ensures only that #mv does not raise exception, it does not imply continuing process. Regards, Minero Aoki