title: Getting the modification time of a file on a FTP server
body: <p>I need to get the modification time of a group of files on a server. I know how to get this on a local computer, but <code>File.mtime</code> doesn't work via FTP. How would I convert this code to work on a server?</p>
  
  <pre><code>files_sorted_by_time = Dir['*'].select { |f| 
    ((Time.now - File.mtime(f)).to_i / 604800) &lt; 7 
  }
  </code></pre>