title: Moving file in Ruby using move command
body: <p>I am trying to do a very simple <code>mv</code> command. Can someone tell me what's wrong with the below code?</p>
  
  <pre><code>src="xyz_*.bak"
  dest = "xyz"
  
  FileUtils.mv Dir.glob("#{curr}"+'/'+"#{src}"), "#{dest}"
  </code></pre>
  
  <p>I am seeing the following error:
  <code>Errno::ENOENT: No such file or directory - /home/dir/src/lib/util/xyz_abc_1.bak or xyz/xyz_abc_1.bak</code></p>
  
  <p>I  double checked and <code>xyz_abc_1.bak</code> file exists.</p>