J
Joel VanderWerf
The :force option is mentioned in the docs, but it is rejected by
FileUtils.mv. It's easy enough to use a 'rescue Errno' suffix to get
this behavior, so I'm not proposing it should be implemented as an
option to the method. Maybe just remove it from the documentation, then?
----------------------------------------------------------- FileUtils#mv
mv(src, dest, options = {})
------------------------------------------------------------------------
Options: noop verbose
Moves file(s) +src+ to +dest+. If +file+ and +dest+ exist on the
different disk partition, the file is copied instead.
FileUtils.mv 'badname.rb', 'goodname.rb'
FileUtils.mv 'stuff.rb', 'lib/ruby', :force => true
FileUtils.mv. It's easy enough to use a 'rescue Errno' suffix to get
this behavior, so I'm not proposing it should be implemented as an
option to the method. Maybe just remove it from the documentation, then?
----------------------------------------------------------- FileUtils#mv
mv(src, dest, options = {})
------------------------------------------------------------------------
Options: noop verbose
Moves file(s) +src+ to +dest+. If +file+ and +dest+ exist on the
different disk partition, the file is copied instead.
FileUtils.mv 'badname.rb', 'goodname.rb'
FileUtils.mv 'stuff.rb', 'lib/ruby', :force => true