method

mv

ruby latest stable - Class: Bundler::FileUtils

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

mv(src, dest, force: nil, noop: nil, verbose: nil, secure: nil)
public

Moves file(s) src to dest. If file and dest exist on the different disk partition, the file is copied then the original file is removed.

Bundler::FileUtils.mv 'badname.rb', 'goodname.rb'
Bundler::FileUtils.mv 'stuff.rb', '/notexist/lib/ruby', :force => true  # no error

Bundler::FileUtils.mv %w(junk.txt dust.txt), '/home/foo/.trash/'
Bundler::FileUtils.mv Dir.glob('test*.rb'), 'test', :noop => true, :verbose => true