title: Ruby keeps telling me my file does not exist
body: <p>I'm trying to check if a file exists with RoR but it keeps saying this file does not exist and I can't understand why.</p>
  
  <pre><code>if File.exist?('~/Desktop/test.xls')
    p 'File EXISTS'
  else
    p 'Cannot find any file'
  end
  </code></pre>
  
  <p>Of course the file exists and I can access it with the terminal using 'ls'.</p>
  
  <p>The script is into the scripts folder of my rails app.</p>
  
  <p>Thanks for any help</p>