title: FTP getbinaryfile by file extension?
body: <p>I am using Net::FTP's <code>getbinaryfile</code> functionality to pull in a zip file with FTP. My system is not aware of the full file name, so I would simply like to search the folder for the zip file extension. Usually I would simply input the filename as <code>*.zip</code>. This does not seem to work. </p>
  
  <pre><code>ftp = Net::FTP.new(domain)
  path = "#{Rails.root}/public/ftp/#{self.id}.zip"
  ftp.getbinaryfile("*.zip", path)
  </code></pre>