You'd probably write a separate function to determine the most recent 
file, wait for its size to stop changing, and then rename it.

-- 
Posted via http://www.ruby-forum.com/.